Remove/disable/hide record producer Submit button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2020 03:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2020 03:49 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2020 03:52 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2020 03:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2024 11:00 PM
In the catalog item make sure to do the below configurations. You are good to go