Override this method to make the user visit this url if no preferred urls was given for a form and
there was no page visited before the user came to the form page.

Returns:

{string} The url to make the user visit if no other alternatives have been found

navigateForward(submitted)

Decides to which page we shall navigate after form submission or cancellation

Parameters:

{boolean}submitted

True if the form was submitted successfully

onBeforeFormRuntimeInit(layer, args)

Event handler called when the "beforeFormRuntimeInit" event is received

Parameters:

layer

args

onCancelButtonClick(type, args)

Called when user clicks on the cancel button.

Parameters:

type

args

onFormContentReady(layer, args)

Event handler called when the "formContentReady" event is received

Parameters:

layer

args

onFormSubmitFailure(response)

Handler called when the form submitoperation failed

Parameters:

response

The response from the submission

onFormSubmitSuccess(response)

Handler called when the form was submitted successfully

Parameters:

response

The response from the submission

onReady()

Fired by YUI when parent element is available for scripting.
Template initialisation, including instantiation of YUI widgets and event listener binding.

{boolean}pageUsesAjaxState(url)

Override this method to and return true for urls that matches pages on your site that is considered to be
pages that use ajax states (places a "#" to add runtime values to the browser location bar).
The browser will do a history.go(-1) for these pages so that the these pages gets a chance of loading the state
the page had before this form was visited.

Parameters:

url

Returns:

{boolean} True if the url is recognised as a page that uses ajax states (adds values after "#" on the url)