- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 08:29 PM
Hi Team,
How can i disable a button on a form that i created using UI Action when one of the field's in a form has a certain value. For example -
If i want to Disable the button "Email" if "Col1" (col1) has a value of 5 and have it enabled for any other value of "Col1", how can i achieve that.
Thanks.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 08:39 PM - edited 02-14-2024 08:40 PM
Hi @irfanshaik
You can just put in the condition field in the UI action.
current.getValue("col1") != 5
But remember this is not real time, once you have the value populated on the page load the decision will happen, not in real time ie the value of 5 should be present when the form loads.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:06 PM
Hi @irfanshaik
Please refer to the below screenshot-
current.getValue("col1") != '5';
Please mark my answer helpful and correct.
Regards,
Amit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 08:39 PM - edited 02-14-2024 08:40 PM
Hi @irfanshaik
You can just put in the condition field in the UI action.
current.getValue("col1") != 5
But remember this is not real time, once you have the value populated on the page load the decision will happen, not in real time ie the value of 5 should be present when the form loads.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:17 PM
Thank you. If i wanted it to update in real time, how would i do that please ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:26 PM
Hi @irfanshaik
Its not recommended since you will be going to DOM manipulation which is not best practice, but you can give it a go.
Refer to below article:
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:28 PM
Thanks!