Hi Amol,
Client-based code:
"Client-based code that executes in the browser, using Ajax or running as Javascript, always executes before the form submission to the server."
This includes Client scripts and UI Policies.
First onLoad Client scripts, after that the first UI Policies kick in.
After that, the Client scripts and UI Policies that work onChange.
After that, the Client scripts that work onSubmit.
Server-side code: (More info: Execution Order of Scripts and Engines)
- Before business rules:
- Before engines.
- Before business rules:
- The data base operation (insert, update, delete).
- After business rules:
- After engines.
- Email notifications.
- After business rules.
Hope this helps!
BR /Miriam