Remove/disable/hide record producer Submit button.

trupti3
Kilo Explorer

Hi ,

Is there any way to remove/hide or disable 'Submit ' button on a record producer using catalog client script onLoad/onChange and also preferably not doing DOM manipulation.

23 REPLIES 23

Hi,

it should work on native

It worked well for me

Did you set Isolate Script field as False for this client script

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

yes ,I did change the isolated script value to false.

Hi Trupti,

 

Alterante solurion can be this:

You can use the code in the on Submit catalog client script:

var varname = g_form.getValue('var_name');

if(varname=='whatever is the value'){

return false;

}

 

You will still see the Submit button but won't able to submit the request.

 

Please Mark ✅ Correct and  Helpful based on the impact.

Warm Regards,

Arvind

Hi,

Did you set UI Type - ALL

please share your script screenshot

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar,

 

It also doesn't work for me. I have the console error. Could you help to have a look?

thanks a lotfind_real_file.png