HTML Fields

  • Profile Image
    retellp
    Asked on January 18, 2012 at 10:53 AM

    Whenever I use any type of formatting (bold, italicize, underline) in the Free Text (HTML) fields, the formatted text always causes some sort of a problem when viewed outside of the form edit screen (like in the Preview). With underlining specifically, it always omits the space between the non-underlined and underlined word. It also always adds an extra space after the formatted text and before the non-formatted text.

    I need my form to look professional. Is there anything I can do?

  • Profile Image
    fxr
    Answered on January 18, 2012 at 03:24 PM

    Looking at your form, it appears you have managed to get this issue sorted out.

    Is that correct?

    If you have time, would you mind sharing what you did to fix it? 

  • Profile Image
    retellp
    Answered on January 18, 2012 at 04:29 PM

    It's actually incorrect. I resolved the problem by removing the underline formatting. I would have preferred to keep it so that the key words stand out more, but since that would cause the spaces to disappear, I unfortunately had to forego the underlining.

    If possible, please look at the code you use for the Free Text field and address this issue going forward.

  • Profile Image
    fxr
    Answered on January 18, 2012 at 04:42 PM

    Ah, ok I see the issue now. 

    Here something you can do to fix it, after making your desired word underlined/italic , delete the space before it, and then recreate the space. 

    It is odd behaviour and I will escalate to have the developers fix it, but can you confirm that workaround works ok? 

  • Profile Image
    retellp
    Answered on January 19, 2012 at 09:46 AM

    Thank you, that workaround seems to work. Could you please also look into why a space is always inserted after the formatted text? It's not a problem if I have more words after the formatted text, but if it's some sort of a punctuation sign, I always end up with a space between the formatted text and the sign.

    For now, I'm going to just apply the formatting to the sign as well. It doesn't look good, but it's better than having an unnecessary space.

    Thanks!