Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
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

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
13.0K
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
1 ACCEPTED SOLUTION
Community Expert ,
Feb 01, 2019 Feb 01, 2019

Almost... It should be:

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

View solution in original post

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 ,
Feb 01, 2019 Feb 01, 2019

At the calculation of field "Client Signature" use:

 

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

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 ,
Feb 01, 2019 Feb 01, 2019

Almost... It should be:

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

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

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

Thanks! Work perfectly.

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