I want to make a form field that functions mostly like a slider or spinner: the user can select an integer from 1-6. However, it should appear as a row of 6 buttons side-by-side, each labeled with its numerical value. So instead of moving a circle to an unlabeled position on a number line, you click the number you want.
I could put an hbox panel inside the fieldset and put the buttons inside that panel, but that wouldn't let me give it a label consistent with the other labels in the form.
Is there any way to create this kind of "custom" field and have it behave like other fields, especially in terms of how it is labeled?
This question is generalized to all custom fields, not just the specific example of the row of buttons, because I have other "custom" fields that I'd like to put in my form.