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

how do i concatenate 2 text fields + 1 number field into one string using javascript?

JettG
Level 1
Level 1

HI,

I am building a fillable form using Adobe Livecycle ES4 and im trying to figure out how to convert 2 text fields and 1 numeric field into one string.

Most of the examples i saw online are just (text + text) OR (number + number) fields. Is it possible to combine text and numbers?

help!!

0 Replies
gretchenhs42
Level 3
Level 3

I have a field on my form that concat's the current date with an employee number that is entered.

Here's the code for it...

FormCalc

 

$.rawValue

= concat(form1.Page1.MileageInfo_Sub_Pos.Table3.Row4.EmployeeNumber.rawValue, Replace(form1.Page1.MileageInfo_Sub_Pos.Table3.Row1.CurrentDate.rawValue,"/"))

I don't know if that helps or not.

Gretchen

JettG
Level 1
Level 1

THanks Gretchen! But if i may ask, how are your dates formatted? purely numeric? Thanks!!

gretchenhs42
Level 3
Level 3

My date is FormCalc

 

$.rawValue

= num2date(date(),DateFmt(1, $.locale))