Dear All,
I have a problem that looks like I would need some expert help to resove.
I have designed a small Form with Acrobat LiveCycle Designer ES 8.2
The plan is people to fill out the form and submit it to a script on a web page.
Here is the problem.
When I insert a regular HTTPSubmit button. Everithing is working just fine. All th fields are submited, and I can process them from there with my script.
However, when I try to make a regular button and add javascript to the click event.
event.target.submitForm({cURL: "http://mysite/myscript.php", cSubmitAs:"HTML", cCharSet:"utf-8"});
The form is submited but non of the fields are.
As an example output from REQUEST array in PHP.
With the regular HTTP Submit button I get:
Array
(
[familyname] => 1
[SubjectNumber] => 2
[Site] => 3
)
While with the above javascript I get:
Array
(
[form1] => Array
(
[0] =>
)
)
Looks like with the Javascript I somehow cannot submit the actuall fields.
Finally, let me tell you the reason why I even want to use Javascript instead of the regular HTTP Submit button.
My plan is so people can actually change the location where to submit the form.
From what I read if I use a regluar submit button, the URL must be hardcoded and cannot be changed (selected, by the user dinamically)
While if I use javascript then I can easily have a text field where people can enter the site where they want to submit the form and use it.
Thank you very much for your help
Please let me know if you need any further information
Regards
Tsvyatko