How to hide an Optional Section based on the result of an OptionButton

J

Joshua

I have an option button on a Travel Request form that says the following:

Hotel Required:
o Yes
o No

If they choose yes I want the Optional Section below to appear so they
can type in Hotel information.

If they choose no I want the Optional Section to remain hidden, or to
hide if they previously selected yes.

I thought this would be simple using a rule based on the value of yes
being 1 for that field, but it isn't working.

Thanks in advance for any help provided!

Joshua
 
J

Joshua

To keep things simple I created a new form with just an option button
and an optional section, to try and follow your instructions.

The option button is field1 and the yes value is 1, and the no value is 2.

The optional section is Group 2 and containts field 2 and Field 3.

I selected the Optional Section and went to properties, then went to
display, and selected conditional formatting.

I created two conditions.

1) Field1 = 2 then hide this control
1) Field1 = 1 then show control and don't allow user to insert

I then save and try to preview and I can click yes and no but the
optional section does not appear.

If I mis-understood your instructions then let me know, but this is
exactly what I tried before you suggested it as it seemed like the right
route to accomplish my goal :)

Hopefully I'm just doing something wrong, but if not any other suggestions?

Thanks S.Y.M.

Joshua
 
J

Joshua

Yeah it works perfectly with a regular section. I guess it was just a
quirk with the Optional Section.

I just put the field condition in and set the default value for the Yes
and No question to be No so the section is hidden by default :)

Thanks so much for you help. I just installed the MSDN version
yesterday to test the software, and try and determine if it's something
we want to use with our new Sharepoint Intranet deployment. Stuff like
this makes it a much more desirable product :)

Joshua
 

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