How to Grey out Submit button instead of totally removing it in Service portal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2023 08:59 PM
Hi,
I would like to know if it is possible to grey out the submit button on portal based on a Yes/No question. If anyone has had any insights on this please share. Thank you!
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2023 10:27 PM
Hi @Kamy ,
Instead of Grey out, you can use onsubmit client script if the value is yes -- return false, below is the example script :
function onSubmit() {
if(g_form.getValue('variable_name') == "yes"{
alert('Hello! use no to submit the form');
return false;
}
}
Regards,
Shravan
Please mark this as helpful and correct answer if this helps you