Concatenate Fields in Rule Editor | Community
Skip to main content
May 9, 2023
Solved

Concatenate Fields in Rule Editor

  • May 9, 2023
  • 1 reply
  • 554 views

I am trying to concatenate two form fields values into one. In the rule editor, I tried to Concat a string with a field value. It didn't throw errors, but it just won't work. 

guideBridge.resolveNode("from-hidden").value = Concat("ABC", this.value);

I don't find Concat under Functions from the side panel. Is that why it's not working? How do I make it work?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pulkit_Jain_

@yguo 

Use the code editor instead and add the below js to any event:

 

var text1 = "ABC"; Field2.value = text1.concat(Field1.value);

 

 Example: I added this js to the button click event and prefilled the next field.

1 reply

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
May 10, 2023

@yguo 

Use the code editor instead and add the below js to any event:

 

var text1 = "ABC"; Field2.value = text1.concat(Field1.value);

 

 Example: I added this js to the button click event and prefilled the next field.