URL
A URL format field provides a text box with an associated button, so that a visitor can test that the they have entered is correct. If the TerraField attribute Prompt is specified, the value will appear in the empty field and disappear as soon as the field receives focus.
TerraForm recognises two special fields for format:
-
ButtonCaption
Optional. The text to appear on the test button. Defaults toTest. -
buttonPassthrough
Optional. Attributes to pass through to thebuttontag wrapped around the checkbox and the text caption. Remember to escape any double quotes (") or hashes / pound signs (#) by doubling them. The default isstyle="font-size : 9px"(writtenbuttonPassthrough="style=""font-size : 9px"""). See the third example below.
The form below shows examples of a plain field, a field with a default value, a field with regular HTML attributes specified, and a field with a prompt message that vanishes when the visitor clicks on the field. Note that many other TerraForm attributes can be specified, such as maxlength, required, and datatype.
Other non-TerraField attributes will be passed through to the underlying text tag (<input type="text">). For example:
onfocus="this.style.backgroundColor='white'" onblur="this.style.backgroundColor='##eeeeee'"
