Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

infopath 2010 clear form data

Posted on 2010-08-24
2
966 Views
Last Modified: 2012-06-22
I have a shift report that submits data to a database that works fine.
I have three buttons on the report
One to submit to the database
One to review data from the database
And one to clear the data displayed in the form not the database (New record)
Is there any way of putting a are you sure warning box on the clear data button so the operator has to think did I submit all the data before clearing the form.
Any help or advice would be greatly appreciated
0
Comment
Question by:LeePrice
2 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 125 total points
ID: 33511489
Yah this is pretty simple.

Add a field (boolean / True / False) to your form named submit.

Default if False

Add another action to your submit that sets the submit field to true

Add a condition to your reset button that if Submit is false prompt a warning that says please submit or press reset again. Have an action that sets submit to true.

Are you doing the reset action?  You will need to make it a rules type. and then have an open and close action.

I often set the record number to 0 and run a query to reset my form to blank values rather than using the packaged reset, which is essentially closing and reopening the form.
0
 

Author Comment

by:LeePrice
ID: 33511901
thank you for the prompt reply! as Usual your a lifesaver!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question