- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 02:37 AM
Hi, I'm looking to not display some mandatory fields in certain scenarios. I will fill them with "n/a" just so that the form can be submitted.
I've tried this with a non-mandatory field an it has worked ok.
function onLoad() {
If (matches conditions){
g_form.setDisplay('description', false); //works
g_form.setDisplay('u_what_are_the_benefits_of_imp',false); //doesn't work
}
}
But when trying the same with some other fields its not working. I'm guessing because they are mandatory?
Is there a way around this?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 02:41 AM
If there is a mandatory field you cant make it read only or hide it, so before you have to hide you make the field non mandatory.
Similarly, if a field is read only you cant make it mandatory, you first need to make it editable n then make it mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 02:49 AM
If a field is mandatory it will show up ,so you need to first make it non mandatory and then hide it using same code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 02:49 AM
Hi garry
You can use UI Policies and make them mandatory, read only or visible according to the condition.
But first make the filed non-mandatory by default.
Thanks
Darpana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 03:32 AM
Be careful re this. UI Policies fire at statup only. If you need somthing dynamic in response to the change in value of a field you will need a client script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 03:41 AM
Only way to do it is make the fields non-mandatory using a script and then hide. Similarly, make fields mandatory using script and then show them so that there are no loose ends .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2017 03:20 PM
please can you send me a screen shot of how to hide mandatory field on the new incident form