Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Catalog client script for hiding field

M_iA
Kilo Sage

Hi, would someone be able to assist me on the best way to create a script to hide a field on a variable set for a record producer?

The reason I cant use a UI policy is that I want to check the record producers script field to see whether it contains a certain field in the script!

Probably not the most efficient, but the only way to identify which record producers should / should not display the field.

So the checkbox field in the variable set is 'u_internal' and the Record Producer script will sometimes reference this to auto set it to true on creation of the record. So where it is, I dont want users to see the checkbox on the record producer.

 

1 ACCEPTED SOLUTION

M_iA
Kilo Sage

In the end, I left the field visible as only affected a couple of forms.

View solution in original post

4 REPLIES 4

Kalyani Jangam1
Mega Sage

Hi @M_iA 

Is this catalog client script not working????
Can you please share your code in which to find the exact rot cause.

Hi @Kalyani Jangam1 , I havent yet written a script as would know how best to do this?

Hi @M_iA 

Open record producer=> Go to the variable set => Create catalog client script for particular variable set and use following code

g_form.setVisible('pass variable name here', 'pass value here');

 

Please use and let me know if it helpful or not.

M_iA
Kilo Sage

In the end, I left the field visible as only affected a couple of forms.