Posts [ 4 ]

Topic: BYO type system | Dynamic Form Fields

Hi Everyone,

I've been looking for a tutorial or screen-cast that talks about building a BYO(Build Your Own) contact form type deal.

For example you might have a Product Model which each product has different options to select as available... now with product options you could create your own and choose a title | Option_type(input_field, drop_down, Check_box etc...) | Label

Those options would then be available when adding a new Product and you could choose or select etc.

any ideas on even a DB Diagram for something like this? or the location of a Screen cast or Tutorial?

Re: BYO type system | Dynamic Form Fields

Hee,

I have been thinking about this myself (to add i in a CMS). As far as i know there isn't a screencast about it. (@ryanb if you read this, maybe a tip ? )

You have two choices for the database:The easiest one is to use a non relational db (like chouchDB http://couchdb.apache.org/).OR you create a bit more complex solution with table. From the top of my head you could do something like this:Form table to connect your field to (so you could create multiple formstext_field table for text_field (duh) (linked to the Form table)

radio table for creating radio possibilities (linked to the Form table)A radio_options table (linked to radio table) for creating options for a radio