sfDisableForm
Makes the current form readonly.
When a form is disabled, all fields in the form are non-editable to prevent the user from editing the form.
Syntax
sfDisableForm(isDisabled)
Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
isDisabled | boolean | no | Set true to disable the form and false to enable the form. If no value is passed, it is considered as true and the field is disabled. |
Usage examples
To disable a form,
sfDisableForm();
To enable the form,
sfDisableForm(false);