In this article we will set up some field dependencies on our application form to determine if applicants possess the sufficient working rights.
Field dependencies can be used to show, hide, disable, etc. fields in E-forms, Application Forms and Approval Workflow forms like Request to Hire, Change Of Conditions forms, etc.
We will add a field to our application form asking applicants if they are an Australian Citizen.
We will then create another field asking applicants if they have working rights.
We should now have two fields on our application form.
If we hover over the do you have working rights field we can set field dependencies on this field. Since if the applicants answer that they are an Australian Citizen, then there is no need to ask the working rights question.
The Action dropdown will let you select the action to perform on the field if a condition is met in the form. In this example will set the Action to Show.
The Operator dropdown will trigger this action based Boolean operators.
OR - Will trigger the action like Show, Hide, etc. if any of the conditions that are setup for the dependency are met.
AND - Will trigger the action like Show, Hide, etc. if all of the conditions that are setup for the dependency are met.
In this example we will set it to OR.
The condition dropdown will determine when an action is triggered like Show/Hide, etc.
Select specific option - will allow you to select the answers of another field in the form as the trigger for the conditions.
Has Value - will trigger the condition if the selected field in the form has any value/has been answered.
In this example we go with Select specific option.
So we should have a dependency that looks like this and we can now select the field to depend on. In this example the field we will depend on will be Are you an Australian Citizen.
Now we can select which option to depend on. In this example we will depend on the No answer since we want to only show the Do you have working rights? if the answer to the Are you an Australian Citizen? is No.
So we should end up with something like the below. We can then click add.
Then if we preview our application form we can see the dependencies in action.
So by default we do not see the Do you have working rights question.
If we answer No to the Are you an Australian Citizen question will see the dependent field.