You need to sign in to do that
Don't have an account?
jadent
Programmatically submit Command Button
Is there a way using javascript to programmatically submit a form as if a user clicked on a <apex:commandButton> component?
Take the simple vf page
<apex:page controller="TestPerms" ><apex:commandButton id="theSectionItem2" value="Search" action="{!testInsert2}" /></apex:page>
Is there a way via javascript to submit this form as if they clicked on the submit button?
How about an actionFunction?
VisualForce
Javascript
All Answers
How about an actionFunction?
VisualForce
Javascript
Fanastic solution! Life saver....
I needed to find an alternative to <apex:commandbutton> as it would alter the style in my page.
Using an image with an onclick to run the script which calls the actionfunction which submits the form did the trick!
Thanks again,
Gerhard