The <hot-input> may be pretty close to what I'm looking for. It seems from this line:
<region-label:><%= this_parent.country._?.region_label %><region-label:> that the <hot-input> is saving the record then updating the region label based the record's new country. Is that right? If so, how does it work for a new record when the country may be selected first and the record can't be saved yet? Or is there something about all this I'm not understanding? On Wednesday, May 9, 2012 4:44:15 PM UTC-7, Bryan Larsen wrote: > > Is http://cookbook-1.4.hobocentral.net/tagdef/hobo_rapid/inputs/hot-input > what you're looking for? It's only available on Hobo 1.4 though. > > Bryan > > On Wed, May 9, 2012 at 5:45 PM, Jim Harvey <[email protected]> wrote: > > Hi, I have new and edit forms where a portion of the form is updated via > > ajax based on selections by the user. Specifically, the user must select > a > > State/Province for the District <select-many> to populate, and then > select > > one or more districts for a School <select-many> to show up. I have it > > working on the EDIT form only because the <select-many> inputs rely on > > saving the current user and populating the dropdowns based on the > "parent" > > selection (ie. province -> district). So, in the case of a New user, I > can't > > save the user without having all other required fields filled out. > > > > Really, I don't want to be saving anything at all, and if the request is > an > > ajax request I'd like to store the selections for Province/District in > the > > controller in some instance variable and use that to inform the > > <select-many>, which would then only save to the User instance in the > > database when the form is submitted. Is there any way this can be done? > Let > > me know if what I want to do is not clear or if you want to see my code > so > > far. Also, I'm on Rails 3.0.12 and Hobo 1.3.0 if it matters. Thanks! > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Hobo Users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/hobousers/-/PeH8nKjfjAsJ. > > 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. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/dSobjeUWDRkJ. 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.
