Catalog Item- UI policy that triggers every time a value of a specific variable changes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2023 07:19 PM
Hi, I am new here, I hope this is the correct place to ask this question.
I am trying to configure a catalog item. There are some DATE variables as part of a variable set displayed on the catalog item. I need to implement logic, that will check, for a DATE variable, the date selected every time the user changes the value while editing the form. So I created a Catalog UI Policy for the catalog item. Within the UI Policy, when to apply, I selected my DATE variable and tried all options that make sense to me, i.e. is empty / is not empty (is empty or is not empty) is anytrhing ... etc. etc. Depending on the setting, I managed that my UI Policy script gets triggered when the DATE variable gets changed by the user from empty (DD:MM:YY) -> Some date (01:01:2023). However, if the user then changes to yet another date, the UI script gets NOT triggered anymore. It will only get triggered if the changes the state of the DATE variable from (DD:MM:YY) -> Some date but NEVER when changed from Some date -> some other date. Probbly I am doing something wrong / missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023 07:33 AM
Dear @schimch1
I understand correctly you are trying on change date variable and you used UI
Policy, it works onload form .
I would suggest go for on change client script and write your logic in the client script.
Note: if you want to do some changes onLoad form, use Is loading parameters from the client script.
Please let me know in case any queries.
- Kailas