Methods

action - action(action, [event])
Called when user clicks form's button.
clear - clear()
Resets the form.
error - error(msg)
Display error message.
generateHTML - generateHTML()
Generate HTML template for simple forms (Internal method).
get - get([field], [returnIndex])
Finds and returns the field object or its index.
getChanges - getChanges()
Compares current record object to original and returns difference.
goto - goto(page)
Opens specified form page.
lock - lock(message, [showSpinner])
Locks the form and displays a status message.
reload - reload([callBack])
Reloads record data and refreshes the form.
request - request([postData], [callBack])
Reloads record data and refreshes the form.
save - save([postData], [callBack])
Submits record data to remote data source for saving.
set - set(field, obj)
Extends field object with obj.
submit - submit([postData], [callBack])
Submits record data to remote data source for saving.
unlock - unlock()
Unlocks the form.
validate - validate([showErrors])
Performs form validation.

Common Methods

destroy - destroy()
Destroys the object.
off - off(type, [handler])
Removes event listener from the object.
on - on(type, handler)
Adds event listener to a object.
refresh - refresh([id])
Refreshes the object without completely re-inserting it.
render - render([box])
Renders the object into box.
resize - resize()
Resizes the object to the width and height of its container.
trigger - trigger(eventData)
Executes all event listeners added with on() method.