Skip to main content
Nintex Community Menu Bar

Clean several single line fields, at the same time, when the form is loaded

  • August 17, 2017
  • 4 replies
  • 16 views

Forum|alt.badge.img+3

Hi,

Is there a javascript that clean several single line fields, at the same time, when the form is loaded ?

I am using Sharepoint and Nintex Forms 2010.

4 replies

Forum|alt.badge.img+14
  • Scholar
  • August 18, 2017

configure to all the controls your custom class and then use a code like

NWF$('.ControlsToClearClass').val('');‍‍

Forum|alt.badge.img+3
  • Author
  • August 18, 2017

Hi, Marian

 

Thanks for the immediate response, but I must be making a mistake:

 

I put    ControlsToClearClass   in CSS Class

 

I put    NWF$('.ControlsToClearClass).val(''); in Form Settings/Personal JS

 

But did not clear the fields when I edited the form.


Forum|alt.badge.img+14
  • Scholar
  • August 20, 2017

I'm sorry, I missed a closing apostrophe sign after class selector.

I corrected the code above, check it once again.

hopefully you added the line of code within RegisterAfterReady() or ready() events...


Forum|alt.badge.img+3
  • Author
  • August 21, 2017

Hi, Marian

Now it's working.

Thank you.