Disable the fields of forms. This does not touch the fields that are disabled at the moment of disabling. This script is executed like an event call.
This depends of jQuery.
Disable form:
$('#form1').trigger('disable-form');
Enable form:
$('#form1').trigger('enable-form');