finnito - 8 months ago

Hey all,

I'm creating a bunch of small lessons (via streams) for users to read and would like to add a couple of text boxes at the bottom of the lesson for the user to answer a question and submit (a form?) them to be saved. I want to save their responses mainly so I can display their response if they open the lesson up again later and to be able to judge whether they have completed the lesson depending on whether they have submitted the relevant form or not.

I was thinking a way to do this could be like the Pyro 2 Entry Form (http://enlivenapp.com/pyro22docs/plugins/streams/entry-form) although this doesn't seem to be available from what I can tell.

Thanks!

ryanthompson - 8 months ago

Absolutely - every time you make a stream for one a form builder will be generated for it - but you can also define your own form builder and set the model to whatever you want like this: protected $model = MyAwesomeModel::class;.