Hide a section until condition met

S

SciMax

How can I hide a section on a form until a radio group condition is met?

This section should be hidden until the user selects a radio button. Value
"1" keeps the section hidden. Values "2", "3" and "4" make the section
visible.
 
L

Lisa

In the section properties, use the display tab, click on conditional
formatting, then
enter the conditions to hide the section. For example, add a condition for
RadioBtn = 1, check the hide control box.
 
S

SciMax

Thanks Lisa but that part of the code I already discovered.

What I'm looking for is to have that section hidden when the form is opened.
It should only be visible when RadioBtn is not equal to 1.
 
L

Lisa

Create a Boolean variable called HideSection and set it to true by default.
Set the Properties of the section to hide the section when variable
HideSection is equal to true. Add rules for the radio button to set variable
HideSection to either True or False, as needed depending on its value.
 
J

Jay

Another way to do it is by using 2 conditions in the Conditional Formatting
dialog. Let the first one be that RadioBtn "Is blank". Then using "Or" add a
second condition of RadioBtn = 1. Then choose to hide the section. When the
form is opened as a new form and NO radio buttons have been selected the
section will be hidden, and once a radio button has been selected, the form
will hide when the value is = 1.

Or you can default the initial value of the button to some number other than
1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top