Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating a sentence from Text Fields

New Here ,
Apr 13, 2021 Apr 13, 2021

How would I go about creating some text input box's and creat a sentence using the data entered?

So at the top of my form I would have a few boxes such as: name, date, location.

The sentence would be standard across so it would end up as:
 I, (name) on (date) was at (location).
I, Jon Smith on 1/1/2000 was at time square.

Is this possible and if so where would I even begin?

TOPICS
Create PDFs , Edit and convert PDFs , How to , PDF forms
598
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 13, 2021 Apr 13, 2021

Hi there

 

Hope you are doing well and sorry for the toreuble. As described you want to create a PDF form with some text boxes for users to enter data.

 

Please check out the steps provided in the help page https://helpx.adobe.com/acrobat/using/create-form.html and see if that works for you.

 

Regards

Amal

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 13, 2021 Apr 13, 2021
LATEST

In text field where you want to show sentence, as 'calculation script' use this code:

var n = this.getField("Name").valueAsString;
var d = this.getField("Date").valueAsString;
var l = this.getField("Location").valueAsString;
if(n == "" || d == "" || l == "")
event.value = "";
else event.value = "I "+ n +" on "+ d +" was at "+l;

Change field names and text as you wish.

Let me know if you need additional help.

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