webforms not submitting(VBscript)

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
steve

webforms not submitting(VBscript)

Post by steve » Thu Dec 30, 2004 6:43 am

I'm writing a vbscript to open IE and fill out some information and then submit the form

ive got as far as all the information being filled in but i cant get it to submit

how do I get it to submit?

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Dec 30, 2004 8:44 am

Hi,

Grab the form object and issue it's submit method:

TheForm.Submit

If the form has a submit button named "submit" you will get an error trying to call the submit function because it has been replaced by the button. In this case the workaround is to call the click function of the submit button instead:

TheForm.Submit.Click
MJT Net Support
[email protected]

steve

Post by steve » Fri Dec 31, 2004 9:41 pm

hey thanks for the advice but actually I fixed it before I read this, what I did was write a sub routine to submit and then call it to submit, i didnt need the submit.click


thanks for the fast response though

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts