Highlighted

How to pull up textfield as email subject line when submitting PDF form.

New Here ,
Sep 29, 2020

Copy link to clipboard

Copied

I have made a form where I get customers to fill up the form in iPad. When they fill up the form and hit submit. I need some of the filled up information as subject line of email. Such as, Name field & Phone number. 

 

I have added Javascript but ipad version or mobile version gives an error that javascript cannot run.

 

Here's the online form if required: Courtesy Car Form or Insurance Quotation Form 

 

var customSubject1 = this.getField("Driver's Name").value;
var customSubject2 = this.getField("Contact Number").value; 
var customSubject3 = this.getField("Driver's license Number").value;
var str1 = " Courtesy Car Form = ";
var str2 = " | ";
var mailtoUrl = "mailto:atmiyaautocare@gmail.com?subject=" + str1 + customSubject1 + str2 + customSubject2 + str2 + customSubject3;
this.submitForm({
 cURL: mailtoUrl, bPDF:true
});
TOPICS
Create PDFs, How to, PDF forms

Views

46

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to pull up textfield as email subject line when submitting PDF form.

New Here ,
Sep 29, 2020

Copy link to clipboard

Copied

I have made a form where I get customers to fill up the form in iPad. When they fill up the form and hit submit. I need some of the filled up information as subject line of email. Such as, Name field & Phone number. 

 

I have added Javascript but ipad version or mobile version gives an error that javascript cannot run.

 

Here's the online form if required: Courtesy Car Form or Insurance Quotation Form 

 

var customSubject1 = this.getField("Driver's Name").value;
var customSubject2 = this.getField("Contact Number").value; 
var customSubject3 = this.getField("Driver's license Number").value;
var str1 = " Courtesy Car Form = ";
var str2 = " | ";
var mailtoUrl = "mailto:atmiyaautocare@gmail.com?subject=" + str1 + customSubject1 + str2 + customSubject2 + str2 + customSubject3;
this.submitForm({
 cURL: mailtoUrl, bPDF:true
});
TOPICS
Create PDFs, How to, PDF forms

Views

47

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 29, 2020 0
New Here ,
Sep 29, 2020

Copy link to clipboard

Copied

IMG_0907779E9911-1.jpeg

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 29, 2020 0
try67 LATEST
Most Valuable Participant ,
Sep 30, 2020

Copy link to clipboard

Copied

Try PDF Expert by Readdle. It's a superior product compared to the mobile version of Adobe Reader, at least when it comes to support for scripts. It's not free, though.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 30, 2020 0