Submit form using PDF Forms Solution

Hi, I am interested in using the PDF forms functionality in a bespoke solution. I have spent a few hours playing the the example solution to familiarize myself with it, with little success. Here is my primary issue:

  1. I used my desktop computer to run Servoy Server;

  2. I access the PDF solution via the web client in a browser using another computer;

  3. When I submit a form using the web client on a remote computer I get an error message saying that it is unable to connect. The reason for this is that the address it is trying to connect to reads: http://localhost:8080/ … if I replace localhost with the correct IP address it submits the form fine.

My question is: how can I change the web client to automatically recognize that the solution is sitting on a remote server and not use the correct IP instead of ‘localhost’?

I am scheduled to go on the Servoy training later this month, however any help would be appreciated in the meantime.

Thanks.
DW.

Do you have the required servoy_pdf_submit_url and servoy_action_id fields on your form along with the submit button? I believe the submit button gets its url from the servoy_pdf_submit_url field that receives it when the form is launched with code like:

//create action
pdf_forms_to_pdf_actions.newRecord();
pdf_forms_to_pdf_actions.template_id = template_id;
pdf_forms_to_pdf_actions.action_type = 1;//==edit
controller.saveData();//so changes are seen by servlet
application.showURL(‘/servoy-service/pdf_forms/pdf_form/load.fdf?action_id=’+pdf_forms_to_pdf_actions.action_id,‘_self’)

Maybe the load.fdf generated by the pdf plugin in the above showURL automatically passes the url to the servoy_pdf_submit_url field for you, I am not sure.

Dean Westover
Choices Software, Inc.

One more thing regarding the servoy_pdf_submit_url and servoy_action_id fields. If your users are using the free Adobe Reader, then you must place these fields on the form yourself along with the submit button. If all your users will always be using the full version of Acrobat (about $250 per seat), then I believe the fields are added to the form automatically.

In other words, the free Adobe Reader can not add fields to a form on its own. You have to do it using the full version of Adobe Acrobat, so that your end users will be able to use the free Adobe Reader.

Dean Westover
Choices Software, Inc.