FormField
|
+--DropDownField
|
+--ListField
|
+--MultipleListField
public class MultipleListField
extends ListField
Field Summary | |
---|---|
mixed | The maximum number of slections that can be made. |
mixed | The minimum number of slections that can be made if any selections were made. |
mixed | True as this field can have multiple values. |
Constructor Summary | |
---|---|
MultipleListField(string name, string label, int required, array options, array values, string blankString, int height, int maxSelections, int minSelections) Creates a new MultipleListField. |
|
__construct(string name, string label, int required, array options, array values, string blankString, int height, int maxSelections, int minSelections) Creates a new MultipleListField. |
Method Summary | |
---|---|
string | Returns the HTML used to display the input portion of this field. |
boolean | isValid() Checks for field errors detected by this field, including a check for blank. |
public mixed $maxSelections = null
The maximum number of slections that can be made.
public mixed $minSelections = null
The minimum number of slections that can be made if any selections were made.
public mixed $multiValues = true
True as this field can have multiple values.
public MultipleListField(string name, string label, int required, array options, array values, string blankString, int height, int maxSelections, int minSelections)
Creates a new MultipleListField.
public string getEditableFieldTag()
Returns the HTML used to display the input portion of this field.
public boolean isValid()
Checks for field errors detected by this field, including a check for blank. This method ensures that the correct number selections has been made, if the selection range was specified. If an error is detected, the setError() method is called to set the appropriate error message.
ListField a field used to select a multiple options from a list of options.