Skip to main content
Nintex Community Menu Bar

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

  • Aug 17, 2017 7:59 PM UTC
  • 4 replies
  • 27 views
  • Translate All

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
  • Aug 18, 2017 12:02 AM UTC

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

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

Forum|alt.badge.img+3
  • Author
  • Aug 18, 2017 5:20 PM UTC

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.

Translate

Forum|alt.badge.img+14
  • Scholar
  • Aug 20, 2017 11:10 PM UTC

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...

Translate

Forum|alt.badge.img+3
  • Author
  • Aug 21, 2017 1:33 PM UTC

Hi, Marian

Now it's working.

Thank you.

Translate