Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6338703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:29:58+00:00 2026-05-24T19:29:58+00:00

Need: Ability to dynamically build Forms Structure (simple idea not actual structure) Admin: Form

  • 0

Need: Ability to dynamically build Forms

Structure (simple idea not actual structure)

Admin: Form Assignment, where you create what field you want your new Form to have
FrontEnd: Where the New form will be implemented (this is the root of this question)
FronEnd Storage: When the New form is filled out the data points are written to a set of tables  

The idea is simple enough, Go into Admin, select the fields, fieldType, and Labels you want

I.E.

Field Name:*Enter a specific field name, like f_name or email  
FieldType: [Text, TextArea, Password, Radio, DatePicker, CheckBox, Select, etc]  
Label: What to display on the resulting form, f_name = First Name, etc  

Then I hit a page on the FrontEnd where the New form is generated, I fill it out and voila the data is stored in the FrontEnd Storage tables.

So the question is, idea’s on how to accomplish this, I already have the Admin section done, it’s dynamically building and appropriately binding a frontEnd From that I would like advice on.

Currently my idea is to simply make a shell form that is a huge ugly switch statement that builds sfForm elements and appropriate validators for each field (fields given from what was entered in the Admin area)

I feel this is the ‘wrong’ way to do it, I did find a plugin ‘spyFormBuilderInterface2Plugin’ which is old and build for propel not doctrine, but this is the basic idea of what I am after. So how would YOU do it?

Please note I am not looking to Dynamically ADD forms to a current form, I can already do this and it’s exactly what is implemented in my Admin section, I need to take data a create a whole NEW form programatically

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:29:59+00:00Added an answer on May 24, 2026 at 7:29 pm

    I’ve created something like you described, just the way you said.

    I have a model FormDefinition which defines a form, and has a collection of FormFields. Each form field has a widget_class, widget_options, validator_class and validator_options.

    I have a custom myForm which needs a FormDefinition in it’s constructor. In the setup() of myForm, I loop through all fields a instantiate the widgets and validators.

    Beacuse in our solution, we needed/wanted to store all form data in separate tabels. My myForm extends from sfDoctrineForm, and my backend has some logic which creates/updates the (php) model and database definition, by just calling the appropriate Doctrine methods. But you could also create an EAV store.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need the ability to dynamically set an onclick using an HTML Helper. the
I need the ability for users to add, edit, and delete lists/libraries but not
Any recommended crypto libraries for Java. What I need is the ability to parse
I need to add the ability for users of my software to select records
I am working on an ASP.NET WebForms project, and we need the ability to
I need an ability to connect to different sources (minimum MS SQL and Excel)
I need the ability to sort a collection of customers which contains a property
I am creating an application that imports several plugins. I need the ability to
So, I'm not quite sure how I should structure this in CakePHP to work
Need a function that takes a character as a parameter and returns true if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.