You need to sign in to do that
Don't have an account?

Two forms in Visualforce page
Hi Everyone,
I need a help to resolve on handling two forms in VF page. The scenario is I have a couple of input field in one form1 and have set of script code after the form. So I took a new form to display Save button. But the Save button is not saving the record with the entered values on the input field.
My issue: if I use single form, the UI is not satisfied and If I am having the script code inside the form, the script code is not working. So Please make me understand and get resolved about the functionality of the save button works fine.
I hope someone will help me on this immediately
Refer below link which has the sample code that shows how to pass value from one page to another.
https://gist.github.com/pchittum/7929944
Best Regards,
Sandhya
jQuery('[id$=saveButton]').click(function(){ //Save button ID in the second form
jQuery('[id$=thisform]').submit(); //Old form id
});
Thanks,
Rakshana
<apex:form id="form2">
<apex:commandButton title="Save & Continue" value="Save & Continue" action=" {!saveApplication}" />
</apex:form>