Skip to content

In version 0.32.0 all radio buttons are checked #751

Closed
@nip1904

Description

@nip1904

Introduction

If you use radio buttons in version 0.32.0 alle buttons are marked as checked. So the last one wins
In version 0.31.0 it behaves correctly.

To Reproduce

List of steps to reproduce the behavior. Include the sql file you are using and the eventual relevant parts of your database schema

SELECT
        'form'          as component,
        'POST'          as method;

SELECT
        'priority'      as name,
        'None'          as label,
        'radio'         as type,
        'None'          as value,
        2               as width,
        TRUE            as checked;
SELECT
        'priority'      as name,
        'Low'           as label,
        'radio'         as type,
        2               as width,
        'Low'           as value,
        FALSE           as checked;
SELECT
        'priority'      as name,
        'Medium'        as label,
        'radio'         as type,
        2               as width,
        'Medium'        as value,
        FALSE           as checked;
SELECT
        'priority'      as name,
        'High'          as label,
        'radio'         as type,
        2               as width,
        'High'          as value,
        FALSE           as checked;


SELECT
        'debug'         as component;
SELECT
        "key", 
        "value" 
FROM 
        json_each(sqlpage.variables('post'));
SELECT 
        "version" as key,
        sqlpage.version() as value;

-- END
![v31](https://github.com/user-attachments/assets/49ddc2ca-7970-42f8-9011-22b65ca0bb3c)
![v32](https://github.com/user-attachments/assets/9b205060-3953-4cc6-9d62-e803310ef7e1)
![html_source](https://github.com/user-attachments/assets/02b8b76a-0bb9-47d8-a3b7-aa2691f44f7c)

Actual behavior

After following these steps, what happened ?
If you saw an error on the command line or inside your page, then paste it here

your error message here

Screenshots

If applicable, add screenshots to help explain your problem.

Expected behavior

A clear and concise description of what you expected to happen.

Version information

  • OS:
  • Database [e.g. SQLite, Postgres]
  • SQLPage Version [found when hovering the default footer of pages]:

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions