Expand my Community achievements bar.

SOLVED

Concatenate Fields in Rule Editor

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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.

Screenshot 2023-05-10 at 9.33.29 AM.png

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

@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.

Screenshot 2023-05-10 at 9.33.29 AM.png