Skip to content

Edit form with pre-selected values #1331

@FilipeVoges

Description

@FilipeVoges

Hello everyone,

I have an application that uses PHP in the back and the Js on the front along with HTML and CSS (the basics).

And I have a problem with using the selectize for editing a form that makes use of it.

The situation is as follows:
A select with all the permissions of possible users, but in that same form has a variable with the permissions that the user already has, my problem is to already insert these variables as already selected, is loading as a normal select coming only the first item selected, being that Js I just load at the end of HTML and initialize the selectize in my select.

what would be the correct way to implement a select with pre-selected values?

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