- 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:48 AM
UI Policies are alternatives to client scripts and can dynamically change information on a form. They offer a more straightforward approach to hiding and displaying fields based on certain conditions.
Here's how you can set this up:
- Navigate to "System UI > UI Policies."
- Click "New" to create a new UI Policy.
- Fill in the necessary fields:
- Name: Enter a descriptive name.
- Table: Select the table where your catalog item resides.
- Order: Enter a number to determine the order in which the UI Policy is applied relative to other UI Policies.
- Short description: Provide a brief description.
- Conditions: Set this to Request Category is Production access.
- Submit the form.
- In the UI Policy Actions related list, click on "New."
- Set the following fields:
- Field name: Select "Short Description."
- Visible: Select "False."
- Submit the form.
- Repeat step 5 and 6 for the "Description" field.
This UI Policy will hide the "Short Description" and "Description" fields when the "Request Category" is set to "Production access."
Remember, as always, to thoroughly test any changes in a non-production environment first. Also, the exact navigation and steps may vary slightly depending on your specific ServiceNow version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:49 AM
chat GPT !
☑️ 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 12:51 AM
Hi @Community Alums ,,, his reply from chat gpt 😂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:53 AM
😀😀