based on license type and product we need to hide terms and condition variable

mani55
Tera Contributor

License type variable is select box variable and product variable is lookup select box variable.

License type is freeware time only terms and condition visible 

Autocad product lice type also freeware but particularly this product i don't need to visible

 

 

License type == Freware&& product!= autocad 

g_from.setDisplay('terms_condition',false);

 

 

1 REPLY 1

Voona Rohila
Tera Patron

Hi @mani55 

 

Can you please share the complete logic you have written.

//change field names of licence type,product and terms conditions accordingly.
if(g_form.getValue('license_type') == 'Freware' &&  g_form.getValue('product') != 'autocad') 
        g_from.setDisplay('terms_condition',false);
else
        g_from.setDisplay('terms_condition',true);

Also validate if there are any UI Policies configured on the terms condition field. 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
5x ServiceNow MVP