Dear Plumsail team,
On new record and In order to get a record ID as i need it to continue a wizard step where a sub lists is implemented i tried the following script :
/*On Step II in Wizard save witout redirection
to get ID and complete wizard with sub parent lists
0 is the index of the first step */
fd.container("WizardNewPerson").widget.$on("update:startIndex", function() {
if (fd.container("WizardNewPerson").widget.activeTabIndex == 1){
//Save
fd.save()
}
});
// force form to stop redirection if save is requested on second step
fd.spSaved(function(res) {
if (fd.container("WizardNewPerson").widget.activeTabIndex == 1){
//Save no redirectioon
res.RedirectUrl = null;
}
});
- First the script is validating i need to save without validation just on wizard step index(1).
- Second even if i fill the requested validation rules the form is saving and doing redirection.
So i need to save and get ID without validation and stop redirection when i am on wizard step index(1)
This process is to access Parent/Child sub form lists and create new sub lists records and force it to get the parent form ID unless you have another solution (On New form) kindly share it.
Thank you for your urgent reply.