Skip to main content
Henry.Ong
Inspiring
February 1, 2019
Answered

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

  • February 1, 2019
  • 2 replies
  • 13693 views

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.

This topic has been closed for replies.
Correct answer try67

Almost... It should be:

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

2 replies

Henry.Ong
Henry.OngAuthor
Inspiring
February 3, 2019

Thanks! Work perfectly.

Bernd Alheit
Community Expert
Community Expert
February 1, 2019

At the calculation of field "Client Signature" use:

 

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

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 1, 2019

Almost... It should be:

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

Participant
May 3, 2022

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!