Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

how do i concatenate

Avatar

Level 1

how can i do concatenate 3 text fields into one string field  using java script or formcalc ?

example:

NameTypeModel
HondaCivic2000
Honda.Civic.2000
2 Replies

Avatar

Level 7

Try setting the calculate event of your field to Name + Type + Model

Avatar

Level 10

Hi,

in FormCalc you can use the Concat() method.

As mentioned above you can use the calculate event to place the script.


$ = Concat(Name,rawValue, " ", Type.rawValue, " ", Model.rawValue)