Events Made Easy Forums Generic Custom fields: checkboxes and radio buttons

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #55982
    Anonymous
    Inactive

    It would be nice if you could insert the label tags.

    #55984
    Franky
    Keymaster

    What do you mean? That is already possible …

    #55991
    Anonymous
    Inactive

    I thought of the HTML output for these fields.

    Something like this:
    `<form >
    <label for=”input1″>Option 1</label>
    <input type=”radio” name=”selection” id=”input1″ value=”1″><br>
    <label for=”input2″>Option 2</label>
    <input type=”radio” name=”selection” id=”input2″ value=”2″><br>
    .
    .
    .
    </form>

    #55992
    Franky
    Keymaster

    Oh I see … indeed not very nice what was done there 🙂
    See this change:
    https://plugins.trac.wordpress.org/changeset/1600627/

    #55994
    Anonymous
    Inactive

    That went again very fast, thanks.
    I have tested your extension, it works, but …
    I think you have to make a small change. At the moment, you use the value argument as an ID. In my case, I often use 0, 1, 2, etc. as value, so I have several identical IDs on a page. Maybe you can combine the field name with the value argument, then the ID is unique.

    #55995
    Franky
    Keymaster

    You’re correct. I thought about it, but then it must’ve slipped my mind again. This fix (based on the previous one) should be better:
    https://plugins.trac.wordpress.org/changeset/1600808/

    #56006
    Franky
    Keymaster

    Small change again: originally the text was to the right of the option/checkbox, so I did it like that again now too (to not impact people that already have these fields in their forms).

    #56008
    Anonymous
    Inactive

    Thanks, this is much better now.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Generic’ is closed to new topics and replies.
Scroll to Top