Page 1 of 1

Javascript code is required for the below tasks

Posted: 06 Sep 2017
by ramanjjilunaidu
Hi Team,
It would be great help if anyone of you helped me on this task.

1. FIELD is not equal to "event complated", disable this field
2. if "field" == "one time" then set "runrate months" ="1".
3. "CURRENCY" is not blank, do these actions, i have taken screenshot of infopath formulas , please refer.
Thank you in advance.

Re: Javascript code is required for the below tasks

Posted: 06 Sep 2017
by ramanjjilunaidu
If i am not wrong for the first two points. i am writing it here please rectify if i am wrong.
1. fd.field("fieldname").value()!="event completed"; semicolon should be there and also "if" should be added or not.
2. fd.field.("fieldname").value()=="onetime"
"secondfieldname"==""1;

Re: Javascript code is required for the below tasks

Posted: 07 Sep 2017
by Nikita Kurguzov
Read this article on conditional hiding, disabling and setting fields, it provides examples of code similar to functionality that you need.

Additionally, you can refer to our JavaScript documentation for specific types of fields where you want to get or set the field value.