Workflow Soluiton

 View Only
  • 1.  Formatting Persistence.

    Posted Jun 02, 2011 11:43 PM

    If you use a textbox or multiline text box to add data on a workflow form, and then attempt to view the data on a subsequent form, (using multi line text or textbox component), you lose the formating, particualrly carriage returns - for instance a form that reads

    1.

    2.

    3.

    Will read 1. 2. 3. on a subsequent multi line text box.

    I have seen address fields on online examples where carriage return persists through forms, but I can't make it work..

    Without uing MergeHTML, does anyone know how to make this work ?

     

    Thanks.



  • 2.  RE: Formatting Persistence.

    Posted Jun 06, 2011 05:55 PM

    Thanks for that, I had actually had a look at that already. I'm not sure about all menu bars accross the top Can you switch all this off, so it looks like plain text.



  • 3.  RE: Formatting Persistence.

    Posted Jun 06, 2011 07:01 PM

    You are experiencing the repercussions of storing data in XML.  By default, all redundant non-printable characters (spaces, blank lines, tabs, carriage returns) are stripped out of the text data.  There are solutions to this issue, but they aren't implemented within the code of the textbox component.

    If you need to preserve formatting, try the HTML Edit component.  It will store your text and the text's markup (HTML) in the same text variable, allowing you render it the same way next time.  If you want to render it again, I believe you want to use the HTML Merge component on your form (instead of the default Ascii Merge component).

    The drawback to using this technique is that now your data is no longer clean.  You can't easily compare the user's input to another text value and be sure they are the same.  So, only use the HTML Edit component when you need the data for displaying, and not for important processing.  For example, it's probably okay if you want to use it to add a comment to a Change Request process, but not okay when a user is specifying the model number for their new cell phone.



  • 4.  RE: Formatting Persistence.

    Posted Jun 06, 2011 07:03 PM

    Sure.  To get rid of the toolbars on the HTML Edit component, uncheck these items:

    Appearance > Show Tab Strip

    Appearance > Show Toolbar



  • 5.  RE: Formatting Persistence.

    Posted Jun 13, 2011 08:58 AM

    I'm using the HTMLEditor, but it sometimes corrupts the text when misspelled words are entered.  See screenshot below:

    Text Box Spelling Error

    I've tried to turn off the spell checking as described here, http://aka-community.symantec.com/connect/de/forums/spell-check-new-servicedesk-request-change-or-disable but this does not seem to work when the (button) toolbar is turned off.

    Any ideas?