Need help to make field mandatory in multirow variable set
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 05:45 AM
Hi Everyone , I have a requirement on catalog item , we have two variable and a multirow variable set(Test1) on catalog item. Our requirement is when we select 1 in first variable (Copier paper) and 2 in second variable (
Pens) then Field1 inside multirow variable set should become mandatory. Please see screenshot below
Labels:
- Labels:
-
Scripting and Coding
15 REPLIES 15
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2023 08:00 AM
Question:If having field on catalogue item depending on that field i need to make multi row variable set field mandatory then use below script write on variable set
var type=g_service_catalog.parent.getValue('request_type');
alert(type);
if(type=="20")
g_form.setMandatory('ci_server_name_1',false);
g_form.setMandatory('server_type_classes',false);