Validation when adding/modifying/deleting from Deluge script
Good afternoon...
I was wondering if any of the validation (or success) scripts run when you modify a record from a script?
I.e.: if I have an application with two forms, one called Budget and one called Contributor
And in the Contributor form's On Edit > Validate I have:
if (input.Status == "In-active")
{
alert "Cannot manually make a Contributor in-active";
cancel submit;
}
And in the Budget form's Status field's On Update script I have:
if (input.Status == "In-active")
{
for each c in input.Contributors
{
cr = Contributor [Contributor == c];
cr.Status = "In-active";
}
}
Will the validate script on the Contributor prevent the On Update script from running?
I just tested it and it seems to work (i.e.: I can update the Contributor's Status) but I just want to confirm that's what it's supposed to do, that I didn't overlook something.
Thanks,