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

How to make the value of an input field equal to another field in the same form?

Contributor ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

I have a form with two fields at the end, namely:

a) Client Name

b) Client Signature

What I want to happen is the user type in his/her name in the Client Name field and the name gets populated in Client Signature with a different font that would look like its a signature (i.e. Brush Script MT, Rage Italic or similar font)

I have defined Client Signature as Read Only so client won't be able to change or input anything in this field.

Thanks in advance.

TOPICS
PDF forms

Views

10.7K

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
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 01, 2019 Feb 01, 2019

Almost... It should be:

event.value = this.getField("Client Name").valueAsString;

Votes

Translate

Translate
Community Expert ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

At the calculation of field "Client Signature" use:

 

event.value = this.getField("Client Name").value;

Votes

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
community guidelines
Community Expert ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

Almost... It should be:

event.value = this.getField("Client Name").valueAsString;

Votes

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
community guidelines
New Here ,
May 03, 2022 May 03, 2022

Copy link to clipboard

Copied

LATEST

What does one do with this code?

 

event.value = this.getField("Client Name").valueAsString;

 

In orther words, what field setting does one need to configure in "Client Signature" so that the value from "Client Name" is loaded?

 

Thansk!

Votes

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
community guidelines
Contributor ,
Feb 03, 2019 Feb 03, 2019

Copy link to clipboard

Copied

Thanks! Work perfectly.

Votes

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
community guidelines