codemancers / rapidfire

Making dynamic surveys should be easy!
https://rapidfire.fly.dev/
MIT License
319 stars 141 forks source link

When using checkboxes, validation always fails #114

Closed codeodor closed 5 years ago

codeodor commented 7 years ago

Because in the attempt builder, text is <ActionController::Parameters {"0"=>"0", "1"=>"0", "2"=>"0", "3"=>"0", "4"=>"0", "5"=>"0"} permitted: true>, not an array, to that string "<ActionController::Parameters {"0"=>"0", "1"=>"0", "2"=>"0", "3"=>"0", "4"=>"0", "5"=>"0"} permitted: true>" gets set as the answer.

codeodor commented 7 years ago

Even that fix does not complete it unless the values include "0", since Rails will submit 0 for unchecked checkboxes. I will work on that as well.

codeodor commented 7 years ago

Ok, that fix should be good now.

dflorez6 commented 6 years ago

Is there a fix to this problem. I've been trying to use checkboxes, but I always get the same error: "Answer text is invalid"

codeodor commented 6 years ago

I've just been using my own fork of this project, which has that fix and many more improvements (at least for my use-case).

See #115 for my fix for only this issue, or #113 for all of them.

dflorez6 commented 6 years ago

Thanks for your reply, I'm just gonna go with a custom solution for what I need. Thanks again.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for another 14 days. Thank you for your contributions.