Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vandan's avatar
Level 13

how to dynamic develop questionnaire survey system

how to develop questionnaire (survey) system using laravel or any readymade package so i cant use it. for example i can add questions and answer dynamic using laravel please suggest

0 likes
4 replies
LaryAI's avatar
Level 58

One approach to building a dynamic questionnaire survey system in Laravel would be to use a combination of database tables and dynamic form generation.

First, you would need to create a database table to store the questions and another table to store the possible answers for each question. You could also create a table to store the responses to the survey.

Next, you would need to create a form that dynamically generates the questions and answer options based on the data in the database. You could use a package like Laravel Collective to make form generation easier.

Here's an example of how you could generate a form for a single question:

<form>
  <h3>Question 1: What is your favorite color?</h3>
  <input type="radio" name="question1" value="red"> Red<br>
  <input type="radio" name="question1" value="blue"> Blue<br>
  <input type="radio" name="question1" value="green"> Green<br>
</form>

You could then use a loop to generate the form for each question in the database.

When the user submits the form, you would need to store the responses in the database.

Overall, building a dynamic questionnaire survey system in Laravel would require a good understanding of database design and form generation. However, with the right approach, it is definitely possible to build a robust and flexible system.

vandan's avatar
Level 13

@tisuchi yes but i want to be dynamic add survey questions and load so can i using form builder or someting to do it?

Please or to participate in this conversation.