- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:43 AM
Hi Team ,
Catalog Build
When ever user selects [ Request Category >> Production access ] , Then short desp and Descp field should be not visible .
NOTE :- Short descp and descp fields coming from the variable set .
Can anyone please help me here ,
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 01:00 AM
@nameisnani , You can Write on Change Client Script on Request Category and use below script
var access = g_form.getValue('request_category) // replace with correct variable name
if(acess=='production access'){
g_form.setMandatory('variablename', false);
g_form.setVisible('variablename', false);
}
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:56 AM
Yes , Variable set is we are using for other item also , Any client script suggestions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:57 AM
Hi @nameisnani ,
In that case you can write a onLoad Catalog Client Script to hide those variables using the g_form API.
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:59 AM
@Anubhav24 , On Load work here ? .... it should be On change right ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 01:00 AM - edited 03-06-2024 01:01 AM
@nameisnani yes you are right I missed that point , onChange Client Script. You can build a condition in your client script if the value receieved from request category is "prod access" then hide the fields. I think as our colleagues have mentioned to use the condition in UI Policy you should try that first.
Please mark helpful/correct if my response helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 01:01 AM
go for ui policy on the catalog variable set instead. Dont create Client script.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....