There are two parts to your question. Q) How do I change the view for an element in a form?
A: This is one of Hobo's strengths, and it provides many different ways of doing so. As such, it provides many different ways of doing so. Which one is the right way requires more information from you. For instance, do you want to do this for all Boolean's in your app, just one specific attribute, or on just one specific form or one specific page for that attribute, et cetera. The docs go over these options, but it can get overwhelming, so feel free to ask if you get bogged down. Q) How do I do a drop-down select for a boolean? A: something like (warning, untested:) <select-input options="&[['Yes', true], ['No', false]]"/> Bryan On Jun 9, 10:41 am, Pete <[email protected]> wrote: > I have a few new fields that I want to add to one of my models - it is > fairly straightforward, but I want to change it slightly.... > > The field is of type :boolean, > > so will be displayed as yes or no, which it perfect - however- in the > form for setting this field, I would rather have a different select > method, rather than the default checkbox for boolean fields. > > A drop down select would work, with yes or no options, or even radio > buttons, > > but I am not sure how to manipulate the appearance of this in the form > - is it possible to change this? > > Thank you! -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
