Discussion
Confirm Dialogue Box on Change of a Property on UI
Hi All,
I want to display a confirmation dialogue with OK and Cancel button on change of a Property in section.When user clicks on OK then changed value will be set to that property but if user selects cancel button then old value should be retained on section.
Any pointer will be highly appreciated.
Scenario: For Ex- There is a Date field on a section prepopulated with a Date.When user changes the date to less than the current date then i want to display the confirm dialogue and if user clicks OK then set the date user selected Date even if it is past date but if he clicks Cancel the retain the value that was already prepopulated there on the section.
Hi,
In the properties panel of the concerned property, define an action "OnChange".
In that action, "Run a script".
The script will call a javascript which will do the desired action.
Not very proficeient with Javascript, so unablee to share the exact code.
Hope this helps.
Regards,
Nishant