- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 07:55 AM
Here is the behavior I want.
1. User clicks checkbox.
2. Button appears (UI action) without updating the form.
Is this possible? If so, how?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 12:17 PM
Hi,
This can be done using a UI Policy. Please follow the steps below to achieve the same:
1) For example I have a UI Action Named "Create Task" on the Incident form which I want to hide based on a checkbox field named "Checked" on the Incident form.
2) So Configure a UI Policy as shown below:
While Configuring the UI Policy "Make sure the "On load" & "Reverse if false" is checked on the UI Policy form.
In the above script Just rename "hide_check" with your UI Action Name which you want to hide. For example below is my UI Action and my action name is also highlighted below as shown:
Result:
I have checked the field "Checked" and then UI Action "Create Task" is visible as shown below:
If you uncheck the UI Action does not gets displpayed.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 11:53 PM
Matthew Taraschke wrote:
Not trying to be rude... But how do either of your answers help me?
No rudeness detected, but...
- my second response provided you with an answer (which you reminded: the answer is what you sought)
- my first response highlighted that requiring two user actions to perform one activity without good reason is considered poor UI design
If you didn't find either my answer nor my caution helpful, then...
My initial thought would have been some client-side scripting: all buttons, links, etc have an ID attribute to uniquely identify them on page, so it's possible to bind a client-side event that makes this button invisible upon loading then reveals it upon a checkbox action.
A preferred way is to create a UI policy (I'd began a proof-of-concept but just seen that someone had beaten me to it - and a good ) that triggered the hide/reveal, rather than client scripting. UI Policies are generally preferred over pure scripting; in fact, server-side methods are preferred over client-side, but as you wish the response to be dynamic without another round trip it'll have to be something client-side.
However, I was waiting to see how far you'd progressed in your solution first. Either way, hope you find Sholke's (pretty comprehensive) response helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 12:17 PM
Hi,
This can be done using a UI Policy. Please follow the steps below to achieve the same:
1) For example I have a UI Action Named "Create Task" on the Incident form which I want to hide based on a checkbox field named "Checked" on the Incident form.
2) So Configure a UI Policy as shown below:
While Configuring the UI Policy "Make sure the "On load" & "Reverse if false" is checked on the UI Policy form.
In the above script Just rename "hide_check" with your UI Action Name which you want to hide. For example below is my UI Action and my action name is also highlighted below as shown:
Result:
I have checked the field "Checked" and then UI Action "Create Task" is visible as shown below:
If you uncheck the UI Action does not gets displpayed.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2019 06:31 AM
USED THIS AND MY ENTIRE TABLE HANGED, THEN ON DELETING THE UI POLICY, IT IS WORKING.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2020 01:21 AM
Hi,
I have reverse requirement.
like onclicking of button on the incident form,flag should be checked.
could you please help me in that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2020 01:45 AM
Hi,
this code is not working as expected.