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

How to hide catalog item variables in order guide and RITM level

Reddymahesh
Tera Contributor

I have used below catalog client script on catalog item to hide variable on order guide level, it's working as expected but it doesn't hide the same variable on RITM level(see attached for reference)

function onLoad() {
   //Type appropriate comment here, and begin script below

   var isOrderGuide = g_service_catalog.isOrderGuide();

   if(isOrderGuide){
    g_form.setMandatory('what_is_the_user_s_group',false);
    g_form.setDisplay('what_is_the_user_s_group',false);
   }
   
}

 

Reddymahesh_0-1718816231829.png

 

However, once I submit order guide, RITM that got created still shows field in the variables

 

 

 

5 REPLIES 5

Ah, yea it won't work on SCTASK as you will have to dot-walk.

Might be easier just to use g_scratchpad instead of a script include.