1

My clients wants its restaurant owners to create FAQs from frontend where each owner can add its questions from frontend and the users will have to submit its answers. I thought to implement it through creating a matrix field which will be available for each restaurants entry. The name of the field could be the question and the text field could be the answer. Each users could save there answers to a new block. I know how to put data into matrix fields that are already made. But i can't find anything from which i can add fields in a matrix block. Is it even possible? Is there any type of plugin available which would help me in it? Any other ideas for this issue would be appreciated.

2

There's a lengthy rundown about this in this ticket if you need a detailed explanation.

In short, you'll want to check out P&T's Guest Entries plugin to populate entries on the back-end from front-end input.

I highly suggest paying very close attention to how you should set up your form fields' name attributes from this StraightUpCraft post (scroll to the very bottom for Matrix fields): https://straightupcraft.com/articles/craft-cms-field-guide-twig?view=input

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.