This forum has moved to a new location and is in read-only mode. Please visit to access the new location.


I would like to be able to use a mix of PHP and YAML for defining fields. This may solve some form problems where options or values need to change on a AJAX refresh where one field depends on another. Also might solve issues such as

For example, I would like to be able to do the following:


# ===================================
#  Relation Behavior Config
# ===================================

    label: Comment
    list: @/plugins/october/test/models/comment/columns.yaml
    form: @/plugins/october/test/models/comment/fields.php


//# ===================================
//#  Form Field Definitions
//# ===================================

return array('fields' =>[

    //# Hide this field for context 'relation'
        'type' => 'relation',
        'nameFrom' => 'name',
        'emptyOption' => '-- Select Post --',
        'comment' => 'This Comment belongs to the Post selected above.',
        'context' => ['create', 'update'],
        'label: Name',
        'commentAbove: Text field, inside a popup.',

'tabs' =>[


            'span' => 'auto',
            'label' => 'Photo',
            'type' => 'fileupload',
            'commentAbove' = 'Image upload inside a tab, inside a popup.',
            'mode' => 'image',
            'imageHeight' => '150',
            'imageWidth' => '150',
            'tab' => 'File Upload',

            'label' => 'Content',
            'type' => 'richeditor',
            'tab' => 'Rich Editor',
            'commentAbove' => 'Content inside a tab, inside a popup.',

The PHP could contain code to effect fields based on POST variables or other influences.

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to