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

Arvind Singh Ra
Kilo Guru

Hi Trupti,

 

My suggestion would be that you use this code if it is really necessary, because it would not be a best practice.

You can use the code in the onChange catalog client script:

var varname = newValue;

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

document.getElementById("submit_button").style.display = 'none';

}

 

Please Mark ✅ Correct and  Helpful based on the impact.

Warm Regards,

Arvind

Arvind Singh Ra
Kilo Guru

Hi Trupti,

 

Alternative solution can be  

You can use the code in the onChange catalog client script:

var varname = newValue;

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

return false;

}

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

 

 

Please Mark ✅ Correct and  Helpful based on the impact.

Warm Regards,

Arvind

Hi Arvind,

I tried this solution , it does not submit the form but still redirects it to some unknown blank page.

Is there any way to stop it happening, I can use this solution if its possible.

suvro
Mega Sage
Mega Sage

In the catalog item make sure to do the below configurations. You are good to go

suvro_0-1704178809638.png