
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 05:51 AM
I already tried several things on my Catalog UI Policy:
However they all give the error message:
There is a JavaScript error in your browser console
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 06:19 AM
Is this in the portal, or in the backend-UI?
For the UI Policy you need to set the field "Isolate Script" to false - you can either add it to the form, or add it to the list view and change it that way.
For the portal you need to make sure the "Run Scripts in UI Type" is set to all.
Then you can use something like this to hide the button - (replace with .show() to reveal
function onCondition() {
if (jQuery) {
jQuery("#oi_order_now_button").hide();
} else {
this.jQuery("#submit-btn").hide();
}
}
I hope this helps!
If this was helpful, or correct, please be kind and mark the answer appropriately.
Michael Jones - Proud member of the GlideFast Consulting Team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 06:18 AM
I need to do this through a catalog ui policy or a catalog client script because the button "Order Now" needs to disappear if an email address contains a certain value.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 06:19 AM
Is this in the portal, or in the backend-UI?
For the UI Policy you need to set the field "Isolate Script" to false - you can either add it to the form, or add it to the list view and change it that way.
For the portal you need to make sure the "Run Scripts in UI Type" is set to all.
Then you can use something like this to hide the button - (replace with .show() to reveal
function onCondition() {
if (jQuery) {
jQuery("#oi_order_now_button").hide();
} else {
this.jQuery("#submit-btn").hide();
}
}
I hope this helps!
If this was helpful, or correct, please be kind and mark the answer appropriately.
Michael Jones - Proud member of the GlideFast Consulting Team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 06:38 AM
It's indeed the following that works:
this.jQuery("#submit-btn").hide();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 06:48 AM
The following indeed worked:
this.jQuery("#submit-btn").hide();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2025 03:49 AM
Hi Michael
it is helpful as working fine at backed but on employee center it is not working. is anything we need to do for that??