How to Override the Nintex Form Save and Submit Button Behavior
For example, suppose:
- you need to validate against different database values depending on a range of answers the user selects? That might require one or two Ajax calls, which could vary as well.
- Or you may need to build a JSON string from values in a “Repeater” control instead of the default xml.
The best part is, you can do just about anything you like, and still have the form save and submit your Nintex form’s data as it normally would.
Here’s how you do it!
- Create your Nintex form and add a “Save and Submit” button
- Open up the button’s properties. For the purposes of this example, call the button’s name “Save”, and in the “ClientClick” property call your function, “MySaveFunction()” as shown in the screen capture below:
Note the following “gotchas”:
- make sure [value=”Save”] is reflective of whatever name you give your button! It has to match.
Google WebForm_DoPostBackWithOptions for more info. 🙂
Please leave comments if you have any tricks to share of your own!