Requirement
What needs to be done
Build a form with the fields below, laid out in two columns:
- Name and Surname in the first row.
- An "Is Married" checkbox in the left column.
- When "Is Married" is ticked, show a "Spouse Name" field in the right column.
- When "Is Married" is ticked, also show a "Have Kids" checkbox in the left column.
- When "Have Kids" is ticked, show a "Total Kids" number field in the right column.
If "Is Married" is unticked, the spouse, have-kids and total-kids fields all disappear. If "Have Kids" is unticked, the total-kids field disappears.
Development hint: Hold all of these fields in a single Record (Structure) variable on the screen, for example Person with Name, Surname, IsMarried, SpouseName, HaveKids and TotalKids. Bind every input to a member of that one variable, and drive the show/hide on its boolean members. Do not create separate loose variables per field.