visibility of Form Section

abhijats
Tera Expert

Hi,

Is there any way by which some Form Section remain hidden and gets visible on the basis of some field value?
Apart from view, I know view can be visible or hidden according to view rules and views contain several form sections but directly can we do this condition thing on Form Section?

5 REPLIES 5

Mark Stanger
Giga Sage

http://www.servicenowguru.com/scripting/client-scripts-scripting/showhide-form-section/


Hi Mark,

I have seen the mentioned link but requirement is to show or hide Form Section according to condition, Let's say if In incident form, caller is 'abhijat' only then a form Section 'caller detail' should be visible to fill in appropriate fields.

If possible please explain what script is to write and where, because i am quite confused between business rule , client script and UI Script and Script include, these all are available places for scripting but what are their speciality, don't know!


Form section visibility can only be changed client side, which means you need to use a client script or UI policy. You can use the code mentioned in that article in a client script or UI policy that reacts to the change of any given field.

You should check out this article for information about what scripts to use in different situations.

http://wiki.service-now.com/index.php?title=Differences_Among_Modules#17_Modules_-_Their_Functions_and_Where_Their_Scripts_Run


thanks mark for such a useful link, if there is any document, guide or link related to scripting basics please share.