LinioIT / dynamic-form-bundle

Generates symfony forms based on Yaml configuration files
18 stars 11 forks source link

Choices field doesn't work #12

Open HellPat opened 8 years ago

HellPat commented 8 years ago

I have problems getting the choices-field to work. It doesn't seem to work at all.

Do you have an example on how to configure it properly?

choice1:
    type: choice
        options:
              choices:
                   - One
                   - Two
fernandocarletti commented 8 years ago

Your Yaml is not correctly formatted.

choice1:
    type: choice
    options:
          choices:
               - One
               - Two

The options field must be inside choice1, not type.

HellPat commented 8 years ago

In fact this was a formatting issue when posting to github. This is my complete file and it doesn't work.

dynamic_form:
    new_user:
        choice1:
            type: choice
            options:
                choices:
                    - One
                    - Two
HellPat commented 8 years ago

Is this still wrong?

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity.