Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

gathering 2 textfields

khaldoona993089
Level 3
Level 3

I want the textfied ( full name ))

gather 2 textfields directly  in other textfield

how can I do this ?

Untitled.jpg

1 Accepted Solution
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

Download the sample from here:

Adobe Document Cloud

Thanks,

Mayank

View solution in original post

4 Replies
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

Download the sample from here:

Adobe Document Cloud

Thanks,

Mayank

View solution in original post

khaldoona993089
Level 3
Level 3

yess      YOU ARE THE MAN

THANK YOU SO MUCH

EvanJonesMdR
Level 1
Level 1

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.