Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

pre-selected/default option #46

@Dunc80

Description

@Dunc80

Is it possible to have a value pre-selected?

When I open a form with this widget on an "update" page I want it to already have the existing data showing, rather than being blank as it would be on the "create" page.

Please could someone advise me on how to achieve this?

I am passing the options to the widget as array $x

'clientOptions' => [ 'valueField' => 'id', 'labelField' => 'name', 'allowEmptyOption' => true, 'preload' => true, 'options'=> $x, ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions