Changing text field to WYSIWYG

sbarre5's Avatar

sbarre5

07 Apr, 2016 01:16 PM

My user's requirements have changed and they now need formatting, linking, etc in what has been developed as a text field. How can I change a text-field in a data definition to a WYSIWYG without losing all of their existing data?

  1. Support Staff 1 Posted by Tim on 07 Apr, 2016 01:47 PM

    Tim's Avatar

    Hi,

    As long as you keep the same identifier for the WYSIWYG field in the Data Definition, the data should remain as is. The easiest way to do this would be to go into the XML configuration of the Data Definition in question, locate the <text> element in question, then add the attribute/value pair wysiwyg="true" to it.

    For example:

    • I have a text field whose identifier is textbox and label is Enter Text Here
    • If I click the XML pane in the Data Definition, this text box looks like:
      <text identifier="textbox" label="Enter Text Here"/>
      
    • I can change this to:
      <text identifier="textbox" label="Enter Text Here" wysiwyg="true"/>
      
      and since the identifier is the same, any data that was previously in this field will be mapped to the 'new' WYSIWYG field.

    Let me know if that helps! I'll be happy to answer any additional questions.

    Thanks

  2. Tim closed this discussion on 27 Apr, 2016 08:34 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac