Skip to main content
Henry.Ong
Inspiring
February 1, 2019
해결됨

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

  • February 1, 2019
  • 2 답변들
  • 13693 조회

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.

이 주제는 답변이 닫혔습니다.
최고의 답변: try67

Almost... It should be:

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

2 답변

Henry.Ong
Henry.Ong작성자
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 Expert답변
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!