cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

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

Jump to solution

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.

Labels: (3)
Tags (1)
0 Kudos
Reply
4 Replies
Workflow Hero

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

Jump to solution

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

NWF$('.ControlsToClearClass').val('');‍‍
Reply
Workflow Hero

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

Jump to solution

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.

0 Kudos
Reply
Workflow Hero

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

Jump to solution

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

Reply
Workflow Hero

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

Jump to solution

Hi, Marian

Now it's working.

Thank you.

Reply