Hide The Submit Button on a Catalog Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 01:01 AM
Hi All,
I want to hide the submit button on a specific catalog item based on a condition.
I tried using a UI policy but it's executed after the page has loaded. Because the page is heavy, it takes a second and the user can see the submit button before it disappears. Is there any way to hide the button before the page loads?
Thanks 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 02:16 AM
Hello @Snow Tomcal,
You can try using with script like canWrite() in the UI Action or ACL.
What is the condition for showing the Catalog item but not able to submit?
Kind Regards,
Swarnadeep Nandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 11:31 PM
Value of a field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 11:42 PM
Create an onLoad client script and put the following code.
var submitButton = this.document.getElementsByClassName("btn btn-primary ng-binding ng-scope");
submitButton[0].style.display = 'none';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 12:54 AM
It still takes a few seconds for the button to disappear.