How to Grey out Submit button instead of totally removing it in Service portal

Kamy
Tera Contributor

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

Sai Shravan
Mega Sage

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

Regards,
Shravan
Please mark this as helpful and correct answer, if this helps you