FormField
|
+--CheckboxField
public class CheckboxField
extends FormField
Fields inherited from FORMfields.fields.FormField | |
---|---|
autoPropagate, data, disableEnterHandler, displayValuesOnNewLine, editable, enabled, endingString, enterTabHandler, enterTabs, error, extraHtml, fieldBelowLabel, formError, help, hidden, htmlify, id, isData, label, labelForId, multiValues, name, required, subFieldDisplayValueSeparator, subFieldSeparator, subFieldValueSeparator, subFields, subFieldsCannotBeEmpty, trimWhitespace, validators, value, valueIsHtml |
Constructor Summary | |
---|---|
CheckboxField(string name, string label, int required) Creates a new CheckboxField. |
|
__construct(string name, string label, int required) Creates a new CheckboxField. |
Method Summary | |
---|---|
string | Returns the display value of this field. |
string | Returns the HTML used to display the input portion of this field. |
string | Returns the HTML to display a basic label for the checkbox |
string | Returns the raw database value of this field. |
public CheckboxField(string name, string label, int required)
Creates a new CheckboxField.
public string getDisplayValue()
Returns the display value of this field. The display value is either "True" or "False".
public string getEditableFieldTag()
Returns the HTML used to display the input portion of this field.
public string getLabelSimpleTag()
Returns the HTML to display a basic label for the checkbox
public string getRawDbValue()
Returns the raw database value of this field. The DB value is either "True" or null.
CheckboxField is a check box (yes or no) field.