Hide Incident Variable Editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2023 12:32 AM
Hi All,
How to Hide Variable section( Incident Variable Editor) on incident form.
Please suggest if any one have idea for this requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 01:51 AM
Hi All,
Variable section should visible only if incident raised through service portal but If any user raise incident through Like All-->Incident--> create new the Variable section should not visible in incident form.
I have added in Section Incident Variable Editor in incident form design and written below client script for variable read-only this is working fine but If user raised incident using All-->Incident--> create new the variable section showing empty.
g_form.setVariablesReadOnly(true);
Please suggest for this requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 04:42 AM
Hi @ashok17, If you would like to make a variable not visible in the incident variables section (variable editor), create a catalog client script and check only Applies on target record check box and uncheck applies on catalog item, form and task and use the setDisplay/setVisible method for that variable.
If you would like to set the display of a variable based on a condition, you can do same validation inside your client script itself.
Kindly mark the answer Correct and Helpful if it helps to resolve your issue.