- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 01:28 PM
I need to hide the SUBMIT button when a Record Producer Variable field response is NO.
Where do i start hiding the button?
thanks
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 04:19 PM
Not sure about hiding it, but in the script field on the record producer, you add something to block the submission if the variable is No. Something like:
if (producer.varable == 'No')
current.setAbortAction(true); |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2017 08:39 AM
Hey Anthony,
Change the type to onChange from onSubmit.
This Client script will run everytime the value of that particular field changes.
On changing the type to onchange, it will ask you the field on which you want to apply the client script. Select the question from the choice list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2017 09:22 PM
Hi Anthony,
You will have to use the Akshay's script onLoad as well as onChange. So that when the form loads and when the value of variable changes, the button's display is evaluated.
Hope this helps,