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
```
```
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
Comment