Working with mandatory fields - InfoPath Dev
in

InfoPath Dev

Working with mandatory fields

Last post 12-07-2006 08:21 AM by Matt Faus. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 12-07-2006 06:12 AM

    Working with mandatory fields

    Quick Query, (this sounds stupid)

    I have an address field in a form that I am using, which has been set as "cannot be blank".

    Is it possible that when a value is added into a different field, that this "cannot be blank" box can be unchecked for the address field?

    Thank You
    Micky
  • 12-07-2006 07:32 AM In reply to

    Re: Working with mandatory fields

    Hi Micky,

    Yes, this can be done with custom data validation.

    1. Double-click the node in the data source taskpane.
    2. Go to the Validation and Event Handlers tab.
    3. Click Add, add the condition "AddressField" "is blank"
    4. Click And >>, add the condition "CheckBox" "is equal to" "true"
    5. Type an error message
    6. Click OK until you are back on the view.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 12-07-2006 08:06 AM In reply to

    Re: Working with mandatory fields

    Sorry Matt,

    That's not what I am looking for...

    I have a check box called "nofixedabode".
    I have an address textbox which is set as a mandatory field.

    Is it possible that when the check box "nofixedabode" is True,
    that the address textbox will no longer be set as a mandatory field.

    I don't know if this can be done, might just have to work around it.

    cheers
    Micky
  • 12-07-2006 08:21 AM In reply to

    Re: Working with mandatory fields

    In step 4 use "false" instead of "true".
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 12-07-2006 08:21 AM In reply to

    Re: Working with mandatory fields

    Also, remove the "Cannot be blank" attribute from the node. You will be using only this custtom data validation.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.