Nintex Newbie

Page break code in the 'Custom Javascript' section

Hi all,

Bit of an unusual one.

I have entered the following code in to the 'Custom Javascript' field of the Form Settings section:

When I save & close the settings and preview the form, it does exactly what I want which is great...

However, when I re-open the Form Settings, the page breaks have been actioned in the text and it now appears as below:

If I then save the settings and preview the form, the code no longer works and no text is pre-populated in the multi-line text box.

Therefore every time I open the Form settings to make a change, I have to re-format the custom Javascript and add back in the '<br>' text.

Is this a known issue or is there anything I can do so that I don't have to edit the text every time I open the settings?

(I am very new to Nintex and/or Javacript so apologies if this is fairly straightforward)

Thanks in advance!

0 Kudos
1 Reply
Design Canvas Artiste

Re: Page break code in the 'Custom Javascript' section

Yes it is a bug, Nintex Designer interprets the HTML unfortunately.
The workaround would be to use a form variable with your text in it and use that variable. I also strongly suggest that you change NWF$(document). ready(function(){....}) with NWF.FormFiller.Events.RegisterAfterReady(function(){....}) which is the correct event for Nintex forms, NWF$(document).ready() is really tricky 😉

0 Kudos