Anyone know how to hide a UI Action if any fields on a form have been edited but not yet saved?

lonesoac01
Giga Guru

Anyone know how to hide a UI Action if any fields on a form have been edited but not yet saved?  If I have to, I will just use the OnChange Client Script, but I would have to get approvals to go that route.

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi, 

UI actions are evaluated on form load, and not based on changes to the form after loading. 

 

Generally the approach would be to display your UI action, and have validation within the UI action to see if fields have been modified. You can then produce an info message to the user. This is a cleaner user experience as it doesn't hide buttons from them when they likely expect them to be present 

View solution in original post

2 REPLIES 2

Kieran Anson
Kilo Patron

Hi, 

UI actions are evaluated on form load, and not based on changes to the form after loading. 

 

Generally the approach would be to display your UI action, and have validation within the UI action to see if fields have been modified. You can then produce an info message to the user. This is a cleaner user experience as it doesn't hide buttons from them when they likely expect them to be present 

yeah, we are on the same page with this issue.  I thought about data validation as well.  Looks like that is the solution.