-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem shoveling a new section into form_data #29
Comments
I am working on a solution where I set:
And that seems to be working, but the returned |
That's strange, I just push dynamic_form_screen.rb on which I build the form like you build your. Here I have no problem I guess your screen is fine (are all your categories presented ?) Could you test on your |
This one is a bit of a doozy. I'm not sure if this is a problem on my end or simply a limitation of XLForm, but hopefully you can shed some light on this for me. I'll try to break it down as best I can.
I have a collection of settings with the following json structure:
I go through the list and grab all the uniq categories, then map through those as the the different sections of the form. That is all working flawlessly right now.
The problem is that I don't have a save button. Since I am dealing exclusively with loops here, I need to inject the save button at the end. And that's where things are not going well. First, I tried switching the first block to an
each
, wrapping the whole thing in[ ]
, with the possibility of conditionally adding a save button.It compiles just fine, but when I load that screen, I get the following error:
I tried going back to
map
and then creating 2 separate methods,settings
andsave_button
and then shoveling them together in aform_data
method:Again, it compiles just fine, but then I get the same error:
And at this point, I'm at a loss. Not sure if what I'm after is just not possible or if I'm missing some subtly in there somewhere.
The text was updated successfully, but these errors were encountered: