Nintex for SharePoint Forum
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Me and my team have been adding and developing JavaScript for our Nintex Form.
I have noticed that the JavaScript code that we have is getting longer every week,
and some or most of them have similar code/function.
I know we have to refactor these similar code/function.
My question is, what is/are your best practice/s on developing/refactoring JavaScript code for Nintex Forms?
This can be also the programs/tools that you use to write and test your JavaScript code.
I have researched some materials that may help:
Learning JavaScript Design Patterns
JavaScript Best Practices Part 1
Writing Modular JavaScript With AMD, CommonJS & ES Harmony
Any feedback on the materials that I have found is greatly appreciated.
Here is something to consider. If you are using javascript to hide or show part of your form, or some other "custom action", it may be that you could achieve the same thing by redesigning your workflow. For example, maybe your form has a section "for internal use only". You could instead have an insert/ edit form for end users, and then a flexi task or some other user input for the support staff to enter in the "internal use only" data.
There is a nintex youtube video that discusses this and many other things. I cannot find the link right now though.