UI Action should not be visible once it is clicked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2022 02:18 AM - edited 11-04-2022 02:20 AM
Hi All,
In agent workspace, We have a functionality that one of the field appears on form when a button is clicked. Now the requirement is to make this button disappear once it is clicked. Please suggest on how this can be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2022 02:26 AM
Hi,
The only way to do this is based on a field, If there is any existing field you can use like state or if its a new incident(not saved yet) then you can add that in your condition.
OR
You have to create a new field and control its value(false by default, and once the button it clicked change it to true). In the button condition you can check that show it only when the field is false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2022 08:09 AM
Hello Anurag,
Thanks for the reply, Is it possible to add logic like if one of the field is visible on form then this ui action should not be visible instead of using a field value? Because when we click on this button then one field will appear, the requirement here is to make button not visible once this field is visible on form even if it has value or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2022 08:22 AM
Im afraid it cannot work like that. UI Action Conditions execute on server side where as your field visibility, most likely, is being controlled client side.
If you want to play around, the below script will tell you whether the field is visible on the form or not
g_form.isVisible('field')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 04:16 AM
Hi Anurag, this is actually not working