Locks the form and displays a status message.
lock(message, [showSpinner])

message | string, message
showSpinner | boolean, optional, spinner indicator

Returns undefined.

#### Description

This method will lock the form by added a semi-transparent div on top of its content. The user will not be able to interact with the form or its content until the form is unlocked with .unlock(). This method will call w2utils.lock() to perform the locking.
If you have following form: $('#form').w2form({ name : 'form', formURL : '/server/path', fields: [ { name: 'first_name', type: 'text', required: true }, { name: 'last_name', type: 'text', required: true }, { name: 'email', type: 'email' } ], actions: { "save": function (target, data) { this.validate(); }, "reset": function (target, data) { this.clear(); } } }); You have 3 options how you want to lock the content.
Lock with a message and a spinner: w2ui.form.lock('Loading...', true); Lock w/o a message, but with a spinner: w2ui.form.lock('', true); Lock w/o a message and w/o a spinner: w2ui.form.lock('');