how to use UI policy for date validation and clear that multiple field for catalog form
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 06:08 AM - edited 10-03-2022 06:57 AM
I created a UI policy where we take dates from the form.
How to write a script that
- if the user enters past dates then clear the selected field.(if user select start_date wrong then clear that field only not the other and same for the start_end date too)
- if the user enters the date_start and date_end if the date_end is less than date_start then clear the date_end field.
how to achieve this with one UI policy.
I created a UI policy for all date validation conditions but I can't clear the selected field if the user selects the wrong date.
This is the catalog form date 1 is date_Start and date 2 is date_end.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 08:28 AM
Create 2 UI Policies.
1st UI Policy to clear Start Date
2nd UI Policy to clear End Date