Skip to main content
Inspiring
July 4, 2018
Question

PDF form submitted blank

  • July 4, 2018
  • 1 reply
  • 1250 views

Hi There

Our employees are running into an issue with a PDF for expenses which is submitted via email. Every time the expense PDF is filled and submitted via email it is submitted & received blank even though on the android tablet it was clearly filled in.

The Actions are as follows for the Submit button

Button Properties:

Mouse UP

     Java Script - Hides submit button then flattens document and sets it to read only.

     Submit a Form - Opens email client, creates new email and adds PDF attachment, also prefills email address of recipient

Execute a menu item

     File>close

does anyone have any ideas what maybe causing this issue.

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
July 5, 2018

What JavaScript code do you use?

Inspiring
July 5, 2018

Here is the scrip I'm using on the document

event.target.display = display.hidden;

flattenFields()

function flattenFields() {
if (app.viewerType=="Reader") {
for (var i=0 ; i<this.numFields ; i++) {
var f = this.getField(this.getNthFieldName(i));
if (f==null) continue;
f.readonly = true;
}
}else{
this.flattenPages();
}
}

Bernd Alheit
Community Expert
Community Expert
July 5, 2018

May be that this is not supported on Android.