A system and method for facilitating distributed form processing is
disclosed. The system ma deploy a form to both a client and a server,
wherein the form is consistent with a common object model supported by
both the client and the server. Scripts associated with the form may be
marked to run on the client or on the server. When a script fires, if it
is marked to run on the client, the script executes on the client. When
the client fires a script marked to run on the server, the client sends
the state of the form to the server, the server runs the script and
returns the new state of the form to the client. The client updates the
state of its form to reflect the changes made by the server.