Need help in making submit button disable on service portal (record producer)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 08:21 AM
Need help in making submit button disable on service portal based on a yes/no type variable.
I have tried writing onsubmit catalog client script but not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 08:30 AM
Hi @sravya03 please go through the below community article:
Please, Mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Best Regards,
Eswar Chappa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 08:31 AM
Hi @sravya03,
Take a look at old thread. Apply the same solution to hide the submit button based on conditions.
Remove/disable/hide record producer Submit button.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if(newValue == 'value you want to hide the submit button for'){
document.getElementById("submit_button").style.display = 'none';
}
else{
document.getElementById("submit_button").style.display = '';
}
}
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 08:54 AM
Hi @Sagar Pagar
That code is throwing java console error.
Below is my code...variable is yes/no and if variable value is yes then submit should be disabled on SP.