- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
If you want to access the data and its styling in a richtext field you have to use the command Fieldname.value.exData.saveXML("pretty"). This will give you the xHTML format of the data. Then you can manipulate the data the way you wish and to get it back into the field you have to use the Fieldname.value.exData.loadXML("xml to load", parm1, parm2). The parms are boolean values that will control whether to replace or append the xml to the existing xml. Refer to the Help/Scripting reference for a more detailed description.
Note that this will not be easy if there is lots of rich Text in your field as the text will be spread out between tags. You may have to use the rawValue (no formatting to know where to put the CR then find it in the HTML and add it there.
Make sense?
Paul
Views
Replies
Total Likes