I have a Recipe form that allows for multiple Ingredients. (What's more, each Ingredient has multiple fields.)
I'd like the blank Recipe form to list, say, three blank Ingredient subforms. But I'd like the user to be able to delete unneeded subforms (via a - button next to each subform), or add more Ingredient subforms (via a + button at the top of the list of Ingredients). This is a pretty common situation, and I know how to do it using JQuery. But in starting to do this in Lift, I realize that there's a problem. What are the names of those new fields? Lift encodes the names on the server, so it seems like adding a new subform would require a trip to the server (unless I included some ridiculous number of subforms, such as 20, and then did a show/hide on them -- but that's a pretty kludgy way to do things). Does anyone have an example of how to do this? Or ideas for the best practice? Thanks! Chas. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" 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/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
