Make a field mandatory when greater than field value is selected

Confluence User - 02 Aug, 2018

In my form, user is prompted to insert comparative cost values into 2 fields 'cost1' and 'cost2'.

They then have a radio button 'preference' function where they need to select either 'cost1' or 'cost2' above.

How should my javascript in Custom HTML be defined to make a "Comments, please justify your selection" field mandatory when selected preference cost value is greater than the other value? 

forms;javascript

1


06 Aug, 2018
confluenceUser
confluenceUser

Hi, you should be able to use FormUtil.getValue("your_field_id") to get the value of the radio button. You can see how that function is used in Pre-populate Loan Payment Schedule

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print