Hide a control based on values on the form InfoPath 2007

Author: mety Nagm Labels::



In Microsoft Office InfoPath, you can use conditional formatting to specify different formatting options for a control that is based on conditions that occur on the form. If the specified conditions are true when a user fills out a form that is based on your form template, the conditional formatting is applied.
This article explains how to use conditional formatting to hide a control that is based on the value of another control on your form template. For example, you can add conditional formatting to ensure that a text box for a driver's license number is hidden unless the user enters an appropriate age into another control on the form.

In order to complete this procedure, you must have at least two controls on your form template — one control that you want to hide and a second control whose value will determine the state of the first control.

Compatibility considerations

When you design a form template in InfoPath, you can choose a specific compatibility mode to design a browser-compatible form template. When a browser-compatible form template is published to a server running InfoPath Forms Services, and then browser-enabled, forms based on the form template can be viewed in a Web browser. When you design a browser-compatible form template, some controls are unavailable in the Controls task pane because they cannot be displayed in a Web browser.
ShowList of controls that can be hidden by using conditional formatting
The following table lists the Office InfoPath 2007 controls that can be hidden by using conditional formatting and whether they are available for browser-compatible form templates.
Controls that can be hiddenAvailable for browser-compatible form templates?
Combo boxNo
Horizontal repeating tableNo
Multiple-selection list boxNo
Ink pictureNo
PictureNo
Vertical labelNo
Choice sectionNo
Repeating recursive sectionNo
Master/DetailNo
File attachmentYes
Text boxYes
Expression boxYes
SectionYes
Optional sectionYes
Repeating sectionYes
Repeating tableYes
Rich text boxYes
ButtonYes
Option buttonYes
Drop-down list boxYes
List boxYes
Check boxYes


Hide a control based on values on the form

  1. On the form template, click the control that you want to hide.
  2. On the Format menu, click Conditional Formatting.
  3. In the Conditional Formatting dialog box, click Add.
  4. Under If this condition is true, set the condition that you want. For example, to hide the control that you selected in step 1 only when a certain value is entered into another control on the form template, select that second control in the first box, and then specify the value that will determine whether to hide the control that you selected in step 1.
  5. Under Then apply this formatting, click Hide this control.
  6. To save the condition and return to the form template, click OK twice.
  7. To test your changes, click Preview on the Standard toolbar, or press CTRL+SHIFT+B.


0 comments |

Labels

Blog Archive

Powered by Blogger.

I made these pages for me and my friends to help solving the problem we face regarding Computer & internet, if anyone wants me to answer a question or find out about some information please send me email and I will try to reply.*P.S. some of the article I wrote and the other I found on the internet I posted them in sprit of learning and shearing, please forgive me if you found something you don’t want to be in my blog, email me and I will delete them. Thank you for your interest in my pages.امل نجم Amal Nagm

banner 1 banner 2