Clear manual entries from a view before submitting. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Clear manual entries from a view before submitting.

Last post 07-28-2013 12:46 PM by Patrick Halstead. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-17-2013 11:10 AM

    Clear manual entries from a view before submitting.

    I have a infopath form that submits to a sharepoint library.  It has 5 different views.  One of the views (let’s say View 5),  pulls information from 3 other views and, many fields for the user to fill in manually, kind of like a report.  I want this view to be a “Print Only” view and not saved when the user submits the form. I know how to create a button for printing. But need to figure a way that when they switch views back to one of the other 4 views to submit, view 5 clear changes (at least the fields that were manually entered).  I know I can create rules to set each entry value to blank when the “switch View” button is clicked but I have 15 fields that need to be cleared.  Any better way?

    Thank you!

     

    Filed under: ,
  • 07-19-2013 11:40 AM In reply to

    Re: Clear manual entries from a view before submitting.

    I just setup rules to clear the data entry for each field.  Not a big deal.
  • 07-20-2013 05:38 PM In reply to

    Re: Clear manual entries from a view before submitting.

    I'm attaching a sample that has a rule with just one action which blanks them all.

    You will have to save the source files and copy the rule from the manifest.xsf since it cannot be generated from the InfoPath Designer.

    Note: this may not work in the browser - I wasn't able to verify.

    Patrick Halstead
    Project Manager at Qdabra
  • 07-22-2013 08:52 AM In reply to

    Re: Clear manual entries from a view before submitting.

    Thanks Patrick! This works great from your sample. I will be able to use this in the future. But I ended up doing is adding a button to switch back to main view but it opens a “new” view verifying if they leave this page, it will erase all data. If they say No, it switches back to the view 5.  If they say yes, then I have each field in view 5clear out and switch to the main view.  Is there a way for your rule in your example work in for a separate view (not just the current view)?  Make sense?

    If not, that is okay.  My rule is published and working ok.  But will definitely use your rule in future forms.

    Thanks a lot!

  • 07-28-2013 12:46 PM In reply to

    Re: Clear manual entries from a view before submitting.

    Unfortunately, the data and the view are separate and there is no indication of which view a field is on so the answer is nope! :)

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.