Skip to content
Discussion options

You must be logged in to vote

Hey @kde99, thanks for your question.

I'm afraid the getQuickEditForm() method is not the right place for adding the fields. The documentation mentions two different places for defining them:

In your case, as you want to set some defaults from the main entity, the first option is suitable for you where you define a setupQuickEditOperation() method in your Crud Controller like below:

public function setupQuickEditOperation()
{
    $event = $this->crud->getCurrentEntry();

    $this->crud->field("result")
        ->type("wysiwyg")
        ->default($event->result);
    
    $this->crud->field("attachments")
        ->type("dropzone")
        ->default($event->attachments)
        ->withFiles

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kde99
Comment options

Answer selected by kde99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants