Open PRO-Nitesh opened 2 months ago
I'll see if I can get someone to take a look, but in the meantime can you indicate which version of formio.js you are using?
ya sure lane , the current version of formio in my angular is
"@formio/angular": "^5.1.0",
It looks like this is resolved in our 5.x renderer, testing with @formio/js@5.0.0-rc.89 and I can't reproduce.
have use useExactSearch, searchResultLimit in my code in formio but , its not working properly
FOR example in the above attached image , i am searching "nitesh kumar", its but appearing in the search BUT "kumar nitesh" is also shown in the search result. even though i have use useExactSearch .
and another problem is , let say there are search results which is above 10 , eg 100 matching results , but it only shows 10 in the drop down , what should i do
The sample code for this is
static setSingleOrMultiSelect(settings, selectParameter) { return { label: 'Default Values', widget: 'choicejs', dataSrc: 'url', clearOnRefresh: true, type: 'select', valueProperty: '_id', data: { url:
${environment.api.getDefaultValues}/{{data.customOptions.form}}/{{${selectParameter}}}
, headers: [ { key: 'Authorization', value: 'Bearer {{JSON.parse(localStorage.getItem("currentUser")).access_token}}', }, ], }, template: '{{ item._id }}', placeholder: 'Choose Default Value', useExactSearch: true, customOptions: { searchResultLimit: 10, }, ...settings, }; }