Problem with Radio buttons being initialized when I have a dash in the name

Problem with Radio buttons being initialized when I have a dash in the name

sniegowssniegows Posts: 4Questions: 2Answers: 0

I have a field
{
label: "Inversion",
name: "sa-settings.inversion",

          type: "radio",
          options: [
            {
              label: "true",
              value: "true"
            },
            {
              label: "false",
              value: "false"
            }
          ],

        id: "dc_ed__goe_sa__config__stored_sa_list__sa_settings__inversion__field"
        },

}
I can create a new row just fine. My server gets the correct data. If I do a refresh, it gets the correct data.

But if I do an edit on the row, the radio button is uninitialized.

I notice, if I change it from name: "sa-settings.inversion" to
name: "sasettings.inversion" or name: "sa_settings.inversion", the initialization works.

Is a dash a not allowed character in the name ?

Answers

  • sniegowssniegows Posts: 4Questions: 2Answers: 0

    Nevermind, I figured out it had to do with
    inversion: true
    vs
    inversion: "true"

Sign In or Register to comment.