- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 08:13 AM
Hi Guys,
I am struggling with this one.
I have two fields on the form:
-Difficulty
-New Ticket
What I need to do is to make the New Ticket field hidden on the form unless the difficulty field is Level 2
Any advice?
Regards
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 08:22 AM
I would recommend using UI policy option here.
When possible, consider using a UI policy instead of a client script for these reasons:
- UI policies have an Order field to allow full control over the order in which client-side operations take place.
- UI policies do not require scripting to make a field mandatory, read-only, or visible.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 08:21 AM
Hi Matt,
You can have an ONchange client script.
check if the newValue == "Level 2", make the New Ticket visible by g_form.setDisplay("field_name",true);
else g_form.setDisplay("field_name",false);
Or write a Ui Policy even for on load if the value is not Level 2 then it should not be displayed and reverse if value condition

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 08:22 AM
I would recommend using UI policy option here.
When possible, consider using a UI policy instead of a client script for these reasons:
- UI policies have an Order field to allow full control over the order in which client-side operations take place.
- UI policies do not require scripting to make a field mandatory, read-only, or visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2023 12:09 AM
Hello Pradeep
I want to appear one field on the form which is on one table when the other field is true on another table can you suggest any scripts..
Thankyou!!!