gathering 2 textfields | Community
Skip to main content
New Participant
November 20, 2019
Solved

gathering 2 textfields

  • November 20, 2019
  • 4 replies
  • 5929 views

I want the textfied ( full name ))

gather 2 textfields directly  in other textfield

how can I do this ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

Download the sample from here:

Adobe Document Cloud

Thanks,

Mayank

4 replies

New Participant
December 18, 2019

Concatenate is what will bring your two fields together. Using Javascript on the "Calculate" event of the fullnamefield use the following code:

if (firstnamefield.rawValue != null && lastnamefield.rawValue != null) {
this.rawValue = firstnamefield.rawValue + " " + lastnamefield.rawValue;
}


This code above is a Javascript IF statement that will only run IF your first name field AND lastnamefield rawvalues are not equal to null. If an object/text field has no text/numbers in it, it is considered to be Null or Zero or Nothing.

New Participant
November 27, 2019

yess      YOU ARE THE MAN

THANK YOU SO MUCH

Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
November 20, 2019

Download the sample from here:

Adobe Document Cloud

Thanks,

Mayank

Employee
November 20, 2019

is this in xdp?