OnChange client script on Currency field

peterg157
Kilo Contributor

Hi Friends,

We have a requirement, where we need to hide/visible a field based on a amount field(Field type is currency). For example, if the amount is less than 10K, fields need to visible, otherwise field should not visible.

For this we tried to do using UI policy and Client script. But during the form Load , it's working fine. But it's not working , during field value Change.

Please provide your inputs.

Thanks.

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

Use this script



if(parseFloat(newValue.split(';')[1])<10000){


  g_form.setDisplay('field_name',true);


}


else{


  g_form.setDisplay('field_name',false);


}


View solution in original post

20 REPLIES 20

Abhinay Erra
Giga Sage

Can you share me your credentials