I am working on Mobile app Builder, i am getting problem with multi choice field

KeerthiPraV
Tera Contributor

I have multi choice field called Type of Incident(type_of_incident) with three options injury, near miss, property damage
i can select injury, property damage simultaneously, But if near miss selects means it should be like they cant select other two fields..For that i want to write a UI rule. run client script and condition is 
if ( newvalue.includes('near_miss') && !newvalue('injury') && !newvalue('property_damage')){
       m_form.setValue('type_of_incident', '');
}

But, It is not setting the value.
Can you help me out with this..How i can configure this.

 

0 REPLIES 0