Announcement

Collapse
No announcement yet.

Select user field in custom dialog

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Select user field in custom dialog

    Following example:
    ```

    ```
    but I changed to
    ```
    // define fields
    this.formModel.setDefs({
    fields: {
    'someString': {
    type: 'link', // field type
    view: 'views/fields/user', // optional, to define custom view
    required: true, // field param
    },
    'someCheckbox': {
    type: 'bool',
    },
    }
    });​
    ```
    but I got an error `Uncaught (in promise) TypeError: Cannot read properties of null (reading 'indexOf')` when selecting user.

    so, how can I use `views/fields/user` on custom dialog.

    Thanks


  • #2
    Also add:

    entity: 'User'

    Comment


    • #3
      Originally posted by yuri View Post
      Also add:

      entity: 'User'
      Thank sir, I am missing "links" attribute also.

      Comment

      Working...
      X