- 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
‎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-08-2017 03:04 PM
I wasn't able to do what I wanted, but based on Michaels comment was able to go one step better . . .
When the user hits SUBMIT, a green message appears at the top sending them a message. It works great.
I went in the Record Producer and added a Catalog Client Script:
OnSubmit script:
=====================================================================================================================
function onSubmit() {
if(g_form.getValue('u_category') == '34' && g_form.getValue('pb_and_hh_update') == 'No')
{
g_form.addInfoMessage('Please do a Pricebook update and update the handheld before submitting your ticket, if you have already done so change response to Yes to proceed with Retail Support ticket.');
return false;
}
else
return true;
}
====================================================================================================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2017 01:29 AM
Hey Anthony,
You can hide the submit button with the help of an onChange Client Script on the field. Try running the below client script on the field.
function onChange(control, oldValue, newValue, isLoading) {
if (oldValue || newValue == 'No') {
gel("submit_button").style.display = "none";
return;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2017 08:14 AM