You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to set the min and max properties of date range filter dynamically in oj-sp-smart-search?

Summary:

How to set the min and max properties of date range filter dynamically in oj-sp-smart-search?

i have the below code in searchconfig.json

"SalaryFilter": {
"type": "oj-sp/smart-search/default-filters/DateRangeFilter",
"label": "Date",
"options": {
"field": "effectiveDate",
"min": "2025-10-25",
"max": "2025-11-25"

},
"data": {
"start": "2025-10-25",
"end": "2025-11-25"
}

I want to set the min/max and start/end values dynamically , how to do this? below code did not work

I used the below code in the searchContext variable but it is not setting it.

"effectiveDateFilter":{
"label":"Effective Date",
"optionsData":{
"min":"2025-10-25",
"max":"2025-11-25"
}

}

Content (please ensure you mask any confidential information):

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!