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):