Hiding a control through validation and removing the data in the data source - InfoPath Dev
in

InfoPath Dev

Hiding a control through validation and removing the data in the data source

Last post 05-20-2009 02:54 PM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-20-2009 01:16 PM

    • Michael71
    • Top 50 Contributor
      Male
    • Joined on 10-07-2006
    • Mclean, Virginia-USA
    • Posts 283

    Hiding a control through validation and removing the data in the data source

    I'm hiding a control on my form. When I save it back to a SharePoint list the data is still submitting. How do I remove the data from the data source when I hide the control(text box, dropdown list, etc.)?

  • 05-20-2009 02:18 PM In reply to

    Re: Hiding a control through validation and removing the data in the data source

    Hey Micael71

    You can set a rule on the control (Textbox / Dropdown .. etc) that you hide, which sets the data of the control to an empty string.

  • 05-20-2009 02:31 PM In reply to

    • Michael71
    • Top 50 Contributor
      Male
    • Joined on 10-07-2006
    • Mclean, Virginia-USA
    • Posts 283

    Re: Hiding a control through validation and removing the data in the data source

    Can you be a little more specific, because I tried to set a rule on this and it didn't work.

  • 05-20-2009 02:54 PM In reply to

    Re: Hiding a control through validation and removing the data in the data source

    What is the logic you are using to hide the control? For example, if your control were bound to field1 and you hid the control when field2 = true, you could then set a rule on field2 with the condition 'when field2 is true' to run the action to set the value of field1 to blank.... does that make sense? I've attached a quick sample in the header. Right click the link and select Save As, then right click the saved copy and select design to open in design mode. Preview to test functionality....

    Hilary Stoupa

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