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.

variable set fields

nameisnani
Mega Sage

Hi Team ,

 

Need help , 

 

The ' Short description ' and ' Description ' , are coming from variable Set .

 

And I want to make this variables not visible , when ever the [ Request category = production access to scdass ] 

 

nameisnani_1-1710134346733.png

 

Please provide me Client Script . 

 

NOTE - Please give Cilent Script only instead of UI plocy . Why because  there are some confusion's in UI Plociy . 

 

Please give Cilent script :

 

When ever user selects " Request category = production access to scdass "  >>>> short desp and desp , has to be not visible . 

 

Please give Cilent script :

26 REPLIES 26

@armanoj  yes value of variable.

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad

@dgarad  sorry , you need to make some modifications to achieve the requirement in the script, where the fields needs to mandatory.

nameisnani
Mega Sage

Hi @dgarad @Shruti  

 

As per your instructions  i have written the script .

nameisnani_0-1710138348308.png

 

subimtted the request 

nameisnani_1-1710138382360.png

 

while checking the ritm in platform I don't know why this short desp and desp are coming 

 

nameisnani_2-1710138435324.png

 

 

NOTE - The short desp and desp , which are coming from the varible set , and we have use that variable set across 40 catalog items 

nameisnani
Mega Sage

Hi @dgarad @Shruti  

 

As per your instructions  i have written the script .

nameisnani_0-1710138588548.png

 

 

subimtted the request 

nameisnani_1-1710138588553.png

 

 

while checking the ritm in platform I don't know why this short desp and desp are coming 

 

nameisnani_2-1710138588583.png

 

 

 

NOTE - The short desp and desp , which are coming from the varible set , and we have use that variable set across 40 catalog items 

Hi @nameisnani 

1) onLoad Catalog Client Script which Applies to Variable Set

2) UI Type - ALL

3) Script below

Ensure you add valid catalog item sys_id in below

function onLoad(){

	if(g_form.getUniqueValue() == 'Your Catalog Item SysId Here'){
		g_form.setMandatory('variable1', false);
		g_form.setVisible('variable1', false);
	}

}

Thanks 

 

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad