- 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:51 AM
Hi @nameisnani ,
you can create a Ui Policy for the catalog variable set.
1. go to > catalog ui policy > create new
2. Set the condition as > Request Category" is "Production access".
3. save the policy and from the realted list create a UI policy action to hide description and short description fields.
i hope this helps..
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right 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 01:02 AM
Hi @nameisnani
You don't need to write client script simply you can use UI policy for this.
Thanks.
Mark this as helpful or correct if it helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 01:03 AM
Hi @nameisnani
go to catalog ui policy
Give first condition user is not empty
and in catalog ui policy actions select field short description and select visible false
do same with description field