Hi, I really just need it for one particular page in the application,
I have a few specific fields in my model which it is applicable for, and for these when a new model is created, I just need to be able to select yes or no (ideally this field will be :required so one or the other must be selected - the checkbox seems to cause problems for this) the <select-input options="&[['Yes', true], ['No', false]]"/> seems to work fine in the view, but I am unsure on how to apply this to each individual field in question. Currently the 'form' for 'new' the fields are presented using <field- list fields="field1, field2 ..." param/>. I am guessing there will be a better way of presenting this when select-input is used? Thank You Pete On Jun 9, 4:47 pm, Bryan Larsen <[email protected]> wrote: > 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!- Hide quoted text - > > - Show quoted text - -- 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.
