MultiField
        
        extends Base
    
    
            
            in package
            
        
    
    
    
Create a Multifield element
Multifield elements allow you to combine multiple fields horizontally with one label. For example, create a first name + last name field with label "Full name"
$objMulti = $objForm->addMultifield("Full name");
// Note: when using addField on a multifield, we don't set a label!
$objMulti->addField(
    "first-name",
    ValidForm::VFORM_STRING,
    array(),
    array(),
    // Keep it short, this is just a first name field
    array("style" => "width: 50px")
);
$objMulti->addField("last-name", ValidForm::VFORM_STRING);
You can also combine select elements to create a date picker:
$objMulti = $objForm->addMultiField("Birthdate");
$objMulti->addField(
    "year",
    ValidForm::VFORM_SELECT_LIST,
    array(),
    array(),
    array(
        "start" => 1920,
        "end" => 2014,
        // 'fieldstyle' gets applied on the <select>
        // regular 'style' applies on the wrapping <div>
        "fieldstyle" => "width: 75px"
    )
);
$objMulti->addField(
    "month",
    ValidForm::VFORM_SELECT_LIST,
    array(),
    array(),
    array(
        "start" => 01,
        "end" => 12,
        "fieldstyle" => "width: 75px"
    )
);
$objMulti->addField(
    "day",
    ValidForm::VFORM_SELECT_LIST,
    array(),
    array(),
    array(
        "start" => 1,
        "end" => 31,
        "fieldstyle" => "width: 75px"
    )
);
Tags
Table of Contents
Methods
- getDynamicLabelMate() : array<string|int, mixed>
- getDynamicRemoveLabelMate() : array<string|int, mixed>
- getId() : string
- getLabel() : string
- getMagicMeta() : array<string|int, mixed>
- getMagicReservedMeta() : array<string|int, mixed>
- getParent() : Base
- getRequiredStyle() : string
- getReservedFieldMeta() : array<string|int, mixed>
- getReservedLabelMeta() : array<string|int, mixed>
- getReservedMeta() : array<string|int, mixed>
- getTipMeta() : array<string|int, mixed>
- setConditions() : void
- setId() : void
- setLabel() : void
- setName() : void
- setParent() : void
- setRequiredStyle() : void
Methods
getDynamicLabelMate()
    public
                    getDynamicLabelMate() : array<string|int, mixed>
    getDynamicLabelMate() Returns the value of $__dynamiclabelmeta
Return values
array<string|int, mixed>getDynamicRemoveLabelMate()
    public
                    getDynamicRemoveLabelMate() : array<string|int, mixed>
    getDynamicRemoveLabelMate() Returns the value of $__dynamicremovelabelmeta
Return values
array<string|int, mixed>getId()
    public
                    getId() : string
    getId() Returns the value of $__id
Return values
stringgetLabel()
    public
                    getLabel() : string
    getLabel() Returns the value of $__label
Return values
stringgetMagicMeta()
    public
                    getMagicMeta() : array<string|int, mixed>
    getMagicMeta() Returns the value of $__magicmeta
Return values
array<string|int, mixed>getMagicReservedMeta()
    public
                    getMagicReservedMeta() : array<string|int, mixed>
    getMagicReservedMeta() Returns the value of $__magicreservedmeta
Return values
array<string|int, mixed>getParent()
    public
                    getParent() : Base
    getParent() Returns the value of $__parent
Return values
BasegetRequiredStyle()
    public
                    getRequiredStyle() : string
    getRequiredStyle() Returns the value of $__requiredstyle
Return values
stringgetReservedFieldMeta()
    public
                    getReservedFieldMeta() : array<string|int, mixed>
    getReservedFieldMeta() Returns the value of $__reservedfieldmeta
Return values
array<string|int, mixed>getReservedLabelMeta()
    public
                    getReservedLabelMeta() : array<string|int, mixed>
    getReservedLabelMeta() Returns the value of $__reservedlabelmeta
Return values
array<string|int, mixed>getReservedMeta()
    public
                    getReservedMeta() : array<string|int, mixed>
    getReservedMeta() Returns the value of $__reservedmeta
Return values
array<string|int, mixed>getTipMeta()
    public
                    getTipMeta() : array<string|int, mixed>
    getTipMeta() Returns the value of $__tipmeta
Return values
array<string|int, mixed>setConditions()
    public
                    setConditions() : void
    setConditions(array $value) Overwrites the value of $__conditions
setId()
    public
                    setId() : void
    setId(string $value) Overwrites the value of $__id
setLabel()
    public
                    setLabel() : void
    setLabel(string $value) Overwrites the value of $__label
setName()
    public
                    setName() : void
    setName(string $value) Overwrites the value of $__name
setParent()
    public
                    setParent() : void
    setParent(Base $value) Overwrites the value of $__parent
setRequiredStyle()
    public
                    setRequiredStyle() : void
    setRequiredStyle(string $value) Overwrites the value of $__requiredstyle