formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.89k stars 1.06k forks source link

useExactSearch is not working ? and searchResultLimit not working above 10. #5762

Open PRO-Nitesh opened 2 months ago

PRO-Nitesh commented 2 months ago

image

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, }; }

lane-formio commented 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?

PRO-Nitesh commented 2 months ago

ya sure lane , the current version of formio in my angular is

"@formio/angular": "^5.1.0",

lane-formio commented 3 weeks ago

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.