Closing a form and the order of processing code and rules

M

Mike B

Without using a fully trusted form, is there any way to close, without
saving, an InfoPath (sp1) form progamatically? If not, is there anyway
to specifiy what order rules and form code are processed?

I have created custom code for emailing and submitting to WSS.
Basically I call a data connection using vbscript and I would like to
close the form after it has been submitted without prompting the user
to save.

Is it possible to call a rule from code?

Thanks,
Mike
 
T

T.Coita

hi,

in infopath design mode you can define a rules on a button click that
close your form:

poperty of the button, click rules, add action and select close the
fomular!

++

Thierry
 
M

Mike B

Which I have done, but if I use custom code that sets fields or submits
the form to a WSS library, the button rules fire first so the form is
never submitted.
 

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