Class: FormFieldFiller

Drupal.viewsUi. FormFieldFiller

new Drupal.viewsUi.FormFieldFiller($target, exclude, replace, suffix)

Constructor for the Drupal.viewsUi.FormFieldFiller object.

Prepopulates a form field based on the view name.

Name Type Default Description
$target jQuery

A jQuery object representing the form field or fields to prepopulate.

exclude bool false optional

A regular expression representing characters to exclude from the target field.

replace string '' optional

A string to use as the replacement value for disallowed characters.

suffix string '' optional

A suffix to append at the end of the target field content.

Members

excludebool

replacestring

sourcejQuery

suffixstring

targetjQuery

Methods

Populate the target form field with the altered source field value.

Stop prepopulating the form fields.

Bind the form-filling behavior.

getTransliterated(){string}

Get the source form field value as altered by the passed-in parameters.

Returns:
Type Description
string The source form field value.

Populate the target form field with the altered source field value.

Returns:
Type Description
* The result of the _populate call, which should be undefined.

Bind event handlers to new form fields, after they're replaced via Ajax.

Name Type Description
$fields jQuery

Fields to rebind functionality to.

Stop prepopulating the form fields.

Returns:
Type Description
* The result of the _unbind call, which should be undefined.