InfoPath 2007 Submit button

M

Moe.Vafaei

Hello,

Very appreciate if somebody could help me on this issue:

In my form, I've a SUBMIT button which one of the rule is to create it into
a SharePoint library and close the form. At the same time, I also created a
click event for this button that I need to save some data to a database. When
I click the button, the form is created in sharePoint library, but it seems
that the click event never get fired and data is not save in database.
Somehow submit precedes the click event. How can I fix that.

Regards,
Moe
 
H

Hilary Stoupa

Hi--
In InfoPath, rules run before code, which is why you aren't getting results
for your click event -- the form is submitting and closing before it runs.
Here is a link with some information and a workaround which may or may not
help in your current situation:
http://enterprise-solutions.swits.net/blog/?p=46

Look into the OnSubmitRequest event of the form, as well, because you may
want to put your code there....
 
M

Moe.Vafaei

Thanks very much Hilary, the links were very usefull.

I actually fixed the issue by removing the close form action. Now form is
created in library and web service is also called through code. User then
needs to close the form by clicking on the Close button.

Regards,
Moe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top