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 / April 2008

Tip: Looking for answers? Try searching our database.

Script Execution Before Rules Being Applied

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eczino@gmail.com - 21 Apr 2008 18:33 GMT
I have scripted a confirmation box for a button that also has rules
defined for it.  The problem I am having is that I want the script to
execute before the rules are applied, as I only want the rules to be
applied if the user selects "Yes" to the Confirmation Box.

As it is now, the rules are applied (and all actions associated with
them) and then the Confirmation Box is displayed.  Is there a way to
reverse this?

Thanks,
Elliot
hellojikir - 22 Apr 2008 15:10 GMT
<P><IMG
src="http://forums.microsoft.com/MSDN/WebResource.axd?d=NySzF1eivP_rMoc50GQJzcvS4MHMO
EKwYrCIgDtzuzlw7GsNki3H_INlfYaLgkxFdA4ESFRtesEUXj11MHjIL5WMBvm3Pubiu_iWcnqAaGQ1&
t=633337194230757564"></P
>
<P align=left>well</P>
<P align=left> </P>
<P align=left><A href="http://ringsignaler.cn/"><IMG height=31
alt=ringsignaler src="http://ringsignaler.cn/logo.gif" width=31
border=0></A><A href="http://2008jambaru.cn/"><IMG height=31 alt=Реалтоны
src="http://2008jambaru.cn/logo.gif" width=31 border=0></A><A
href="http://2008soittoaanet.cn/"><IMG height=31 alt=Soittoäänet
src="http://2008soittoaanet.cn/logo.gif" width=31 border=0></A><A
href="http://2008beltonen.cn/"><IMG height=31 alt=beltonen
src="http://2008beltonen.cn/logo.gif" width=31 border=0></A><A
href="http://2008tonos.cn/"><IMG height=31 alt=tonos
src="http://2008tonos.cn/logo.gif" width=31 border=0></A><A
href="http://2008klingeltoene.cn/"><IMG height=31 alt=Klingeltöne
src="http://2008klingeltoene.cn/logo.gif" width=31 border=0></A><A
href="http://2008suoneria.cn/"><IMG height=31 alt=suoneria
src="http://2008suoneria.cn/logo.gif" width=31 border=0></A><A
href="http://2008toques.cn/"><IMG height=31 alt=toques
src="http://2008toques.cn/logo.gif" width=31 border=0></A><A
href="http://2008ringtones.cn/"><IMG height=31 alt=ringtones
src="http://2008ringtones.cn/logo.gif" width=31 border=0></A><A
href="http://2008ringetoner.cn/"><IMG height=31 alt=ringetoner
src="http://2008ringetoner.cn/logo.gif" width=31 border=0></A><A
href="http://cheap-wow-gold.net.cn/"><IMG height=31 alt="wow gold"
src="http://cheap-wow-gold.net.cn/logo.gif" width=31 border=0></A><A
href="http://cellphone-ringtones.cn/"><IMG height=31 alt="cellphone
ringtones" src="http://cellphone-ringtones.cn/logo.gif" width=31
border=0></A></P>
Clay Fox - 22 Apr 2008 15:33 GMT
Rules always run before code in InfoPath, which can be a pain.

One work around is to put your code on a field change. Add a field for this
purpose.
Change the field value as the first rule action.
This will trigger the code and then it will return and complete the rules on
the button.
Otherwise there may be a way to hook into the message box result, but I have
not tried this.
Signature

Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum

> I have scripted a confirmation box for a button that also has rules
> defined for it.  The problem I am having is that I want the script to
[quoted text clipped - 7 lines]
> Thanks,
> Elliot
 
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.