On Feb 16, 2011, at 10:26 AM, Donald R. Ziesig wrote: > I have a client (real-estate) that wants addresses to be entered on a single > line as in: > > Number: [ 10] Street Name: [ Downing] Street Type: [ St.] Unit: [ ] > > I have the app working fine with individual lines in Hobo. The earlier Rails > version had no problem formatting this input using standard Ruby data types > and html.erb. > > Two questions, > > 1) Is it possible to specify a composite data type with formatting as above > which can be used as appropriate and will display on a single line in editing > forms? > > 2) Failing that, is there any way of customizing the edit format of > individual columns so that it shows as above.
I think this is a bit of a sore spot right now - it's hard to tweak field-list to get horizontal rows short of rewriting the whole thing. I'd recommend that you just code the form directly, using <input:field-name /> as appropriate. Going forward, we're still trying to decide on the best API to handle "chunked" values; addresses are certainly a typical example (frequently needed in line 1 / line 2 / city - state - zip format) as are names (salutation / first / middle / last / suffix). Ideally, you'd be able to declare the whole bunch as a single rich type and then pull it into each place it's needed (shipping/billing addresses, for instance). --Matt Jones -- 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.
