Skip to main content
Participant
January 5, 2025
Question

Create a form that generates a letter from filling in typical information boxes

  • January 5, 2025
  • 1 reply
  • 421 views

Hi I'm hoping someone can assist as have no ideas what to do

 

so let's take a form say page one contains theses in text boxes: so when you click it to type in the name and title disappear for the new data

 

box 1 - Name and title

box 2 - address

box 3 subject 

box 4 - details

 

Above is an example then let's say on page 2 it's where it generates all the information  in a type of letter or document

 

the second page would have preloaded text and the boxes from page 1 that info will populate onto page2 see example below

 

To (box 1)

 

you have enquired about the following property (box 2), please could you explain what your enquiry is about (box 3)

 

What  are your contact details - (box 4)

 

please could someone assist 

 

I just need a guide in how to build this please?

1 reply

PDF Automation Station
Community Expert
Community Expert
January 5, 2025

Enter the following custom format script into boxes 1 through 4:

if(!event.value)

{event.value="Name and title"}

Change "Name and title" accordingly for boxes 2 through 4.  On page 2, create a multiline text field and enter the following custom calculation script:

 

event.value=
"To "+this.getField("box 1").value+"\r\r"+
"you have enquired about the following property "+
this.getField("box 2").value +", "+
"please could you explain what your enquiry about "+
this.getField("box 3").value+".\r\r"+
"What are your contact details - "+
this.getField("box 4").value+".";

 

Participant
January 6, 2025

Hi,

 

so I would build a form and then use the above script to to enter into the required boxes on page 1

 

im not the best with scripting but I will give it a go, how do I enter the script and then view it after? Is there anywhere to find a guide to assist? Or to learn

 

im trying to understand as best as possible