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

osarzola
osarzola

I am building a Custom FormWidget and almost everything works great but the file upload Widget does not make the relation the model, i think that is caused because the checkUploadPostBack() method inside the FileUpload Plugin is not called

<?php

$this->formWidget = $this->fillCustomFormWidget('fields.yaml', 'FancyForm', $id);

        $result = [
            'objectId' => $id,
            'tabTitle' => (strlen($page->title) > 20) ? substr($page->title, 0, 20) . '...' : $page->title,
            'tab' => $this->makePartial('form_page', [
                'form' => $this->formWidget,
                'parentPage' => Model::find($page->parent_id),
                'currentId' => $id,
                'parentId' => $page->parent_id,
                'objectId' => $id
            ])
        ];

Someone has a clue?

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.