Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Multiple line search and replace

Avatar

Level 2

Hello,

I was wonder if you can do a multiple line search and replace in either the xml source or on script event?

For example search for

if( i = 1){

     a = "fixe";

replace with

if( i == 1){

     a = "fixed";

}

I have a few forms where we should have used functions and didn't and have the same code multiple times on a form and needs to be updated.

Brad

1 Accepted Solution

Avatar

Correct answer by
Level 8

You can always save your form as XDP then open it in a text editor that can search and replace multiple lines...

Kyle

View solution in original post

1 Reply

Avatar

Correct answer by
Level 8

You can always save your form as XDP then open it in a text editor that can search and replace multiple lines...

Kyle