Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Rich text box content duplication

Avatar

Level 2

Hi Experts

I am trying to get rich text content from one text box to another text box. Here in the below I image i have rich text content in textbox 1 while clicking button the content will be set to text field 2 raw value. It works fine but the formating is missing. I understand this due to scripit variable asigned to text box 2. I ask you experts is there any other way to duplicate textbox 1 content to textbox 2 without loosing the format. Have anyone tried this before.

form.JPG

thanks in advance

1 Reply

Avatar

Level 10

You can do this the following way.

var Source = Textfield1.value.exData.saveXML("pretty");

Textfield2.value.exData.loadXML(Source, true);