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

Default text in text field with variables

Explorer ,
Apr 03, 2024 Apr 03, 2024

In the Text field called "PROPOSAL/PROJECT DESCRIPTION" I would like to have some text automatically populate in this box.

Here's what I would like to be able to do:
I spelled it out the best I could for everything to make sense.


line 1: Click Here to Enter Text. <<<-This line would be slightly grayed out. minus the text Line 1:

Line 2: Target Multiplier = (VAR1) <<<-This line would have this text normal/Black but include after the equal sign a number from the field called "Target_Multiplier" minus the text Line 2:

Line 3: Billing Multiplier = (VAR2) <<<-This line would have this text normal/Black but include after the equal sign a number from the field called "Billing_Multiplier" minus the text Line 3:

 

The person filling out this field would select the text in this line first and then type/paste text that would replace the line called "Click here to enter text", the Target Multiplier and the Billing Multiplier would remain and include the variables from the noted fields.

If the user types 3.0 into the Target Multiplier field and 2.5 into the Billing Multiplier field in the form it would look like this:

Click Here to Enter Text <-This line would of course be slightly grayed out.
Target Multiplier = 3.0
Billing_Multiplier = 2.5

Lets say the text the user typed/pasted was:

This company proposed to inspect 2 bridges for DOT and submit report through the DOT reports system etc...
Target Multiplier = 3.0
Billing_Multiplier = 2.5

TOPICS
How to , JavaScript , Modern Acrobat , PDF , PDF forms
371
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 04, 2024 Apr 04, 2024

This will be quite tricky to do. You will need to use Spans to have multiple styles in the same field, plus a custom calculation script to combine the user-entered text with the values from the other fields. Why not simply split it into multiple, single-line text fields? Or at least one text field for the user input, and one for the automatic values?

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
Explorer ,
Apr 04, 2024 Apr 04, 2024
LATEST

Nesa Nurani took care of it for me, so she gets the correct answer.

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