I want to alter a radioenum controller so that it asks for confirmation when toggling between two values.
The radioenum has values "None", "Primary" and "Duplicate"
when changing from Primary to either "None" or "Primary" to "Duplicate" it needs to open a confirmation alert, and if the user Cancels the field needs to go back to detail view status (as opposed to its edit status) with the original value of "Primary" as if it was never edited.
The problem is I can't figure out how to cancel the edit from the radioenum field controller (I want this to work in record but also list view edits).
Ideally the cancel would also cancel the record edit or editable list edit if that was the only field that was changed.
Any thoughts?
thanks
FrancescaS