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.

I'm trying to unhide a field with setVisible after catalog submission but it doesn't work!!!!

Kirle
Giga Contributor

Hi everyone,

I’m new to using setVisible in a Catalog Client Script and I’m hoping I’m missing something simple.

Goal / expected behavior

  • I have a Catalog Item with variables visible to the requester and one internal-only variable that’s hidden on the form.
  • After the item is submitted, I want that hidden variable to become visible for our internal team to use.
  • The variable is a Multiple Choice named action.

What I tried

  • g_form.setVisible('action', true) and setDisplay in a client script.

Client script

function onSubmit() {
 if (g_form.isNewRecord()) {
   g_form.setVisible('action', true);
   }
}

Question
Do I need to handle this with an onLoad / onChange Catalog Client Script (or a Catalog UI Policy), and/or use a Script Include to control visibility for the internal team after submission?

 

 

1 ACCEPTED SOLUTION

MAHAMKALI
Giga Guru

Hi @Kirle 
Create a UI Policy without any conditions - and uncheck both Applies on Catalog Tasks and Applies on Requested Items

Screenshot 2026-04-07 115354.png


and in the UI Policy Action select variable and set Visible as False
Screenshot 2026-04-07 115558.png

This will make the variable hidden on the catalog form and not on RITM and Task.


View solution in original post

6 REPLIES 6

Sarah9001
Tera Contributor

You can get away with using a Catalog UI Policy and select "Applies on a Catalog Item view". No condition needed.

 

Then create policy ui action to set the internal variable visible to false. 

litchick10
Tera Guru

If I understand your question correctly, you only want to show the field on the RITM or SC_Task

 

If so, you would create a UI Policy that hides it on catalog only. The field will then show up on the request item and if a selected field will show up on the SC Task. 

Kirle
Giga Contributor

Thank you so much!

MAHAMKALI
Giga Guru

Hi @Kirle 
Create a UI Policy without any conditions - and uncheck both Applies on Catalog Tasks and Applies on Requested Items

Screenshot 2026-04-07 115354.png


and in the UI Policy Action select variable and set Visible as False
Screenshot 2026-04-07 115558.png

This will make the variable hidden on the catalog form and not on RITM and Task.