The CreatorCon Call for Content is officially open! Get started here.

Catalog Client Scripts (can't edit in read only editor)

Vakho
Tera Contributor

Hello Folks,.
 I'm new to SNOW and a bit confused about how it works. I tried to figure it out with documentation but looks like I'm missing something.

I want to be able to write JavaScript for certain actions where it is possible, for instance, in Catalog Client Scripts I tried to write the script but it showed an error. 

There is notice: 

 

New client-scripts are run in strict mode, with direct DOM access disabled. Access to jQuery, prototype and the window object are likewise disabled. To disable this on a per-script basis, configure this form and add the "Isolate script" field. To disable this feature for all new globally-scoped client-side scripts set the system property "glide.script.block.client.globals" to false.

 

I tried to figure out where the hell are those settings..
Spend a whole day and had no luck.. Any tips? Where should I find those settings? 

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

This isn't an error, just an informational message - note the blue background vs red for an error. It's just warning against certain practices that were probably never really supported, but until a few releases ago were never acknowledged on the screen as being a bad idea.  Ignoring this for now, if your user account has the admin or maybe some other roles, you should be able to create or edit Catalog Client scripts. Can you share a screenshot showing the part that is read only?

Hello Brad, 
 Dunno what happened but it works today 🙂 looks like some magic. 

Thanks