Auto-click button

B

bwjohnson1

The Submit button on the main toolbar of my infopath form uses rules to send
emails and the form to a document library in our sharepoint site. I have
another button that uses custom code to submit the rows of a repeating table
to a list on our sharepoint site. I want to program a rule with the main
submit button to click the other button so that all of the submit functions
work at the click of one button. Is it possible to auto-click a button using
a rule or some other programming method?
 
J

Jayar Gozon

Hi bwjohson1,

Buttons in infopath can only be executed if the user clicks on it. However,
you can have a work a round by creating a trigger using a hidden textbox that
will execute your code on change event. In this way, you can create a rule in
your submit button on the main toolbar that after you submit the form in the
document library or vice versa, you can now throw a value (e.g. ‘now()’)
inside the hidden textbox, which will now prompt the code to execute.

I hope this helps.
 

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