Making Fields Visible Under Conditions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2014 12:05 PM
I have created 4 fields for my Incident form but I only want them to be visible when a particular Subcategory is chosen. How can I do this? Is it a Business Rule? A UI Policy? Something else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2014 12:23 PM
You can accomplish this either by using UI policy or Client Script.
For client script you can use onChange and within the script check for condition like g_form.getValue('subcategory')=="Your chosen category" and then use g_form.setVisible('field name to make invisible', false)
If you decide to use UI policy then it is a simple UI policy with condition subcategory is what you want and then chose the field that you wish to make invisible and use true or false accordingly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2014 12:27 PM
Not sure how in the UI Policy to make certain fields visible. Is it in the script that gets executed if the subcategory condition is met? If so, what would the script look like?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2014 12:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2014 12:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2014 12:49 PM
You need to submit the UI Policy to see the Policy actions.