cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Javascript file loaded after my custom javascript in Nintex Forms

Jump to solution

Hi Nintex Community,

 

I have an issue with Nintex Forms 2013 ( 2.4.0.0 ).

 

Context : I’m designing the edit form of a published content type based on document.

 

 

In my custom content type I click on the « Edit form with Nintex Forms » link.

 

In the settings I put my javascript library url in the « Custom JavaScript Includes » and I put my custom javascript in the « Custom Javascript » :

form-settings.PNG

 

But my javascript library is loaded after my custom javascript :

form-js-error.PNG

 

 

I did this before and it worked fine!

What have I done wrong? How can I reach this?

 

Thanks.

 

 

_________________________________________________

 

PS: I tried to clear and reset my form, this doesn't change anything..

Labels: (2)
0 Kudos
Reply
6 Replies
Highlighted
Automation Master
Automation Master

Re: Javascript file loaded after my custom javascript in Nintex Forms

Jump to solution

Does the following behave any differently?

NWF$(document).ready(function() {

    alert("hello world!");

} );

0 Kudos
Reply
Nintex Newbie

Re: Javascript file loaded after my custom javascript in Nintex Forms

Jump to solution

Thanks for your answer Andrew Glasser , of course this will work fine because you use the "Nintex jquery alias" which is already loaded, but I want to use different custom libraries (like jquery.SPServices) and it all load after my custom javascript, so it doesn't work.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Javascript file loaded after my custom javascript in Nintex Forms

Jump to solution

Hi Canatan,

 

Can you please try to use NWF.FormFiller.Events.RegisterAfterReady.

 

Please wrap your code inside of a function literal and pass it to the NWF.FormFiller.Events.RegisterAfterReady().

e.g.

NWF.FormFiller.Events.RegisterAfterReady(function () {

.........

});

 

Let me know if any issues.

 

Thanks,

Shirin

View solution in original post

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Javascript file loaded after my custom javascript in Nintex Forms

Jump to solution

Thank you Shirin Patel‌, it solved my issue!

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Javascript file loaded after my custom javascript in Nintex Forms

Jump to solution

Hi Shirin,

I tried the same, I am trying to get a value in the text box , but gives me

thanks,

Sojan

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Javascript file loaded after my custom javascript in Nintex Forms

Jump to solution

Please ignore, my mistake.

It  is working.

0 Kudos
Reply