Widget:DefaultFormField

From Open Energy Information

This widget will take a form field name (html <input name=> attribute) and a default value and use javascript to display the default value (when the field value is empty).

Parameters include:

  • fieldname - the field to populate
  • value - the value to default

For example:

{{#Widget:DefaultFormField
|fieldname=foo
|fieldvalue=default
}}