- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2017 05:09 PM
I am working on developing major incident using Parent Child relationship. I have created a UI Action to create a button that will create and populate a new child incident. I have also included on the incident form a checkbox field major_incident to identify the parent. I want to have the Create Child Incident button display on the parent incident only but am struggling on how to accomplish this.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 06:03 AM
Hey Joyce,
Sorry for not telling you this sooner, I have already answered something similar ==>
1) Create a UI Policy --> Set Condition as field (check_box) is true
2) In the Script tab set Run scripts true
3) In the if condition write
$$('#action_name')[0].hide(); //This will hide the top button
$$('#action_name')[1].hide(); //This will hide the bottom button as well
4) In the else condition write
$$('#action_name')[0].show(); //This will show the top button
$$('#action_name')[1].show(); //This will show the bottom button as well
you can check it over here How to hide UI Action based on field change in form without using DOM?
Also check this post How to hide/show an UI action on field changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 05:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 06:03 AM
Hey Joyce,
Sorry for not telling you this sooner, I have already answered something similar ==>
1) Create a UI Policy --> Set Condition as field (check_box) is true
2) In the Script tab set Run scripts true
3) In the if condition write
$$('#action_name')[0].hide(); //This will hide the top button
$$('#action_name')[1].hide(); //This will hide the bottom button as well
4) In the else condition write
$$('#action_name')[0].show(); //This will show the top button
$$('#action_name')[1].show(); //This will show the bottom button as well
you can check it over here How to hide UI Action based on field change in form without using DOM?
Also check this post How to hide/show an UI action on field changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 06:33 AM
Nitish - after adding the UI Policy my Create Child Incident button is showing only on Parent incidents.
Thanks for you help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2017 04:21 AM
By creating the UI Policy I am now able to control when the Create Child Incident buttons shows and it is working fine with the exception that when I select the checkbox Major Incident I receive the following error:
onChange script error: TypeError: $$(...)[0].Show is not a function function (){var o=i(m,arguments);return l.apply(n,o)}
Any idea how to resolve this?