- This topic has 7 replies, 2 voices, and was last updated 7 years, 8 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘Generic’ is closed to new topics and replies.
Events Made Easy › Forums › Generic › Custom fields: checkboxes and radio buttons
It would be nice if you could insert the label tags.
What do you mean? That is already possible …
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>
Oh I see … indeed not very nice what was done there 🙂
See this change:
https://plugins.trac.wordpress.org/changeset/1600627/
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.
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/
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).
Thanks, this is much better now.