Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PRO-Nitesh opened this issue Aug 21, 2024 · 3 comments
Assignees

Comments

@PRO-Nitesh
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

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

@lane-formio
Copy link
Contributor

It looks like this is resolved in our 5.x renderer, testing with @formio/[email protected] and I can't reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants