Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2007

Tip: Looking for answers? Try searching our database.

Simple Code for a reset button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
speaktomenow@gmail.com - 12 Jan 2007 05:47 GMT
Hi I have an infopath form that is sitting in a sharepoint doc library.
On submit it gets emailed to a certain person in our organisation, but
I want to put a Reset button at the bottom. In HTML this is just so
easy to do and I cannot figure out how to do this in infopath. I read
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=798
but that was no help whatsoever.

I just want some simple code that will allow me to reset the form
onclick.

Is this possible? Can anyone advise?

Thanks.
steve@verizon.net - 12 Jan 2007 15:28 GMT
put this behind your button if your using visual studio/vb:

    Public Sub CTRL2_5_OnClick(ByVal e As DocActionEvent)

thisXDocument.DOM.selectSingleNode("//my:field1").text = " "
    End Sub

just do the same thing for each field... there maybe a way to reset
them all with one statement, but i don't know what it is....

the syntax would be simiar to vbscript, javascript, but i don't know
exactly what it would be.

steve

speaktome...@gmail.com wrote:
> Hi I have an infopath form that is sitting in a sharepoint doc library.
> On submit it gets emailed to a certain person in our organisation, but
[quoted text clipped - 9 lines]
>
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.