Add a line feed to an error message.

  • AgilityAssoc.Canada
    Asked on May 29, 2018 at 11:11 AM

    Hi,

    I know from past experience that the error message are displayed by java script so unless I embed the script I may not be able to do this. I would like to add a line feed to an error message.

    1527605919line feed Screenshot 10

    I tried adding a <br /> and \n to the text but it didn't work. So is this even possible if I can't edit this line of java-script I copied from source code view?

    generalError":"There are errors on the form. Please fix them before continuing. \n Il y a des erreurssur le formulaire. Veuillez les corriger avant de continuer."

    Note the \n that I added to the text but it didn't do anything. That is not where I actually want to do the line feed.

    regards Robert

  • AgilityAssoc.Canada
    Replied on May 29, 2018 at 11:27 AM

    Well as fast as I posted this ticket I found a work around. I added a number of &nbsp; to the text and that did the trick. It took a bit of messing about but success was achieved. 

    Is there perhaps an alternate method that I could have used?

    best Robert

  • Vanessa_T
    Replied on May 29, 2018 at 1:42 PM

    Hello Robert,

    Unfortunately, it is not possible to add a new line by editing the Form Warning texts as we have security measures in place that strips away tags and slashes. The only workaround I could offer is downloading the source code and hosting it into your site for greater customization.

  • AgilityAssoc.Canada
    Replied on May 30, 2018 at 7:14 PM

    Well that is as I thought so I will just use the &nbsp; to add spaces and go with that.

    Is it possible to have separate language notices? 

    Thank you, Robert

  • John_Benson
    Replied on May 30, 2018 at 9:50 PM

    Hi Robert,

    To avoid confusion, we will be addressing your new question to this thread: https://www.jotform.com/answers/1487428

    Thank you.