Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

silverstripe-multiform - example step that saves answers to a dynamic question list


Go to End


1198 Views

Avatar
brice

Community Member, 52 Posts

27 May 2014 at 10:35am

Edited: 27/05/2014 10:35am

I've extended MultiFormStep to allow answers to be collected for a dynamic number of questions. This is useful if you have an unknown amount of questions (e.g. dynamically generated by a CMS based survey maker). See:

https://gist.github.com/briceburg/12235673995d2eb3888f

Hope this is useful to somebody!

I can submit a PR to the module if there's interest.

~ Brice