October 20th, 2013, 03:47 PM
Submitting form data from hidden div
I'm trying to hide certain form field data before submitting it when all fields are filled.
These 'hidden' fields are filled from a popup with the following code and works fine
After the fields are filled, i use this to hide the the formsection and show the data filled from the popup
parent.parent.document.getElementById("shipping:firstname").value = name;
Problem is that when i use the second part to hide the formsection, i get a submit error for the missing form field data. I thought hiding them would still submit the data.
parent.parent.document.getElementById("co-shipping-form").style.visibility = "hidden";
I tried with visibility=none and display=hide.
Any smart suggestions?
Last edited by Inpresif; October 20th, 2013 at 03:50 PM.
October 20th, 2013, 06:12 PM
Try changing the opacity of the element(s); make the element(s) opacity "0.0"; I think that should work.