The CreatorCon Call for Content is officially open! Get started here.

Need help to make field mandatory in multirow variable set

sunil7
Giga Expert

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

find_real_file.png

 

find_real_file.png

15 REPLIES 15

Lingam Kalyan
Kilo Contributor
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);