when adding submit button in pdf and setting the parameters for submit form window, I am able to sucessfully post the pdf to my server:
i have added form having some check boxes,
var docs = app.activeDocs;
var content = new Array();
for (var docCount=0; docCount < docs.length; docCount ++)
for(var i = 0; i < docs[docCount].numFields; i++)
var name = docs[docCount].getNthFieldName(i);
var field = docs[docCount].getField(name);
content[i] = new Object();
content[i].name = field.name;
content[i].val = field.value;
and on server i am reading the all field like:
what is wrong request is going to server but i am not able to read field key- value pair on server.
let me know how to pass selected fields key-value to server , i want to submit form as HTML only
for(index = 0 ;index< Request.Form.Count - 1;index++)
controlPara = Request.Form.AllKeys(index);
controlValue = System.Web.HttpUtility.UrlEncode(Request.Form(index));
If (controlValue.Length > 0)
paraNames &= controlPara & "||-||"
paraValues &= controlValue & "||-||"
waiting for response..........
The parameter aFields of the method submitForm must be array of field names. You can't use an array of field names and values.
Thanks Bernd Alheit for your reply,
basically I want to submit only selected fields using submitForm method, and it should be HTML using cSubmitAs: "HTML"
if you give me any sample code or refe. link it will be great hel for me.
looking for your lights on this issue.
Use an array of field names for parameter aFields.