This topic is locked

dynamically set field to required

9/23/2012 10:45:47 AM
PHPRunner General questions
A
Athlon author

I have a form with multiple sections on it.
Is it possible to change the field value of a field in one of the collapsed sections from no rules to required (has to have data) from a drop down value using Jscript? The layout is closed so the field is not visible on the page unless you expand it.
Could anyone please advise or help put me in the right direction.
Many thanks,
Mike.

Sergey Kornilov admin 9/23/2012

Field cannot be set to be required dynamically based on visibility.
Theoretically speaking you set it required in PHPRunner wizard or in Javascript OnLoad event. If someone wants to submit the form with required field corresponding tab/section will be open automatically letting user enter value to this field.