Hiding Textbox

J

Jerry Thomas [MSFT]

Is the text box is related to another field such as asking for Age?
For example, if their age is under 18, you want their actual age.
[X] Are you over 18 [...] Enter age

Right click on the "Enter Age" textbox and select text box properties.
Click on the 'Display' tab and select [Conditional Formatting]
[Add]
Set the condition: Field 1 is equal to 'true'
Select "Hide this control".

This will hide the text box but not the label.

To hide both, you could insert a section and then put the text box and label
in the section. Then, add conditional formating to the section just like we
did for the text box above.

Does that work for you?
--
Jerry Thomas
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 
A

as

Yes! Thank you.

Jerry Thomas said:
Is the text box is related to another field such as asking for Age?
For example, if their age is under 18, you want their actual age.
[X] Are you over 18 [...] Enter age

Right click on the "Enter Age" textbox and select text box properties.
Click on the 'Display' tab and select [Conditional Formatting]
[Add]
Set the condition: Field 1 is equal to 'true'
Select "Hide this control".

This will hide the text box but not the label.

To hide both, you could insert a section and then put the text box and label
in the section. Then, add conditional formating to the section just like we
did for the text box above.

Does that work for you?
--
Jerry Thomas
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.


as said:
Can I hide a text box? If so, How?
 

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