Solved

infopath 2010 clear form data

Posted on 2010-08-24
2
969 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
[X]
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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

734 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