How to disable text fields if Checkbox is not marked - InfoPath Dev
in

InfoPath Dev

How to disable text fields if Checkbox is not marked

Last post 12-06-2011 03:10 PM by Anson Hidajat. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-06-2011 01:54 PM

    How to disable text fields if Checkbox is not marked

    I need to disable two text fields for every checkbox on my form, unless the box is checked. For example, if "User Name" is not checked, I want my two text fields, first name and last name, to be disabled. Any advice? Thanks!

  • 12-06-2011 03:10 PM In reply to

    Re: How to disable text fields if Checkbox is not marked

    You'll need 2 rules to accomplish this.  On the first text box, create a new formatting rule.  The condition for the rule needs to look something like "checkboxField = FALSE".  The formatting section should have disabled this control checked.  Use this same rule for the second text box and your controls should be disabled when the checkbox is unchecked.

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.