Would the use of JavaScript in Forms 2010 be the same (syntax wise) as in Forms 2013??
NB: I'm checking with the customer if their IT department has migration plans for this outdated SP platform.
Would the use of JavaScript in Forms 2010 be the same (syntax wise) as in Forms 2013??
NB: I'm checking with the customer if their IT department has migration plans for this outdated SP platform.
Best answer by MegaJerk
Ahh yeah that won't change, but I would recommend using:
/* global vars and functions, if any */
NWF.FormFiller.Events.RegisterBeforeFillerVisible(function () {
/* Your code to be executed against the form */
/* Form Status: Invisible */
});
or
/* global vars and functions, if any */
NWF.FormFiller.Events.RegisterAfterReady(function () {
/* Your code to be executed against the form */
/* Form Status: Visible*/
});
As they both run at the very end when the Form has had all of its Controls created and their initial Rules / Positions processed, with RegisterBeforeFillerVisible firing just before the user could see the form, and RegisterAfterReady firing immediately upon the form becoming visible / usable to the user.
However, that's just my own preference for keeping things in order. NWF$(document).ready(function(){}); will absolutely still work though.
(for more reading on the subject, see: https://community.nintex.com/t5/Community-blogs/The-Big-Event-A-Closer-Look-At-Nintex-Form-Events/ba-p/79521 specifically the "Order of Operations" section)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.