Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

How to add values of two textfields and assignthe result it to another field?

Avatar

Former Community Member

I have designed a form in which consists of several fields.Now i will enter values in two textfields and the result value should be displayed in another field which is read only.Can you please tell me how to do this?

3 Replies

Avatar

Former Community Member

On teh calculate event of the readOnly field you woudl use the command:

this.rawValue = Field1Name.rawValue + Field2Name.rawValue

Paul

Avatar

Former Community Member

Paul if i want to concatenate two strings or alpha numeric characters from 2 fields and display in the third field,Will this code be able to do that?