Skip navigation
Techi Panda 207 posts
Apr 5, 2009
Currently Being Moderated

Rich text box content duplication

Aug 10, 2012 3:03 AM

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

 
Replies
  • Currently Being Moderated
    Aug 10, 2012 4:47 AM   in reply to Techi Panda

    You can do this the following way.

     

    var Source = Textfield1.value.exData.saveXML("pretty");
    Textfield2.value.exData.loadXML(Source, true);
    
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points