Expand my Community achievements bar.

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

Avatar

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!!

3 Replies

Avatar

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

Avatar

Level 1

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

Avatar

Level 3

My date is FormCalc

 

$.rawValue

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