Creating forms

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Schumy
New Member
New Member
Posts: 5
Joined: Tue Jun 16, 2009 3:53 pm

Creating forms

Post by Schumy »

Hi you all, I need some help creating forms to register data in a db table: I tried FormBuilder but it only insert data in a table (CMS_MODULE_FB_RESP_VAL) and does not create tables with specific fields, or I was not able to do that: can someone help me?

p.s. sorry for my english, I'm from Italy.  ;)
NaN

Re: Creating forms

Post by NaN »

Since every form is completely different from each other Formbuilder cannot create tables with specific fields.
It just stores the data with its field definitions and form ids.
To get the data there is a module Formbrowser.

Could you provide some more info about what you are trying to do?
Why must the form data be stored in a specific table. (how does the table look like)
Maybe you could use Formbuilder, an UDT and the Eventmanager to store the form data in that way you want.

If the combination of Formbuilder, Formbrowser, UDT ect. doesn't fit your needs you might create an own module.
Try the skeleton module or modulemaker.
Schumy
New Member
New Member
Posts: 5
Joined: Tue Jun 16, 2009 3:53 pm

Re: Creating forms

Post by Schumy »

First af all, thanks for your help.

I have to create an application to store some data in a db: name, surname, work, phone, mail and some messages which will be read from another application (not this) as an automatic voicemail, so I have to write these informations in a specific-formatted table with its fields.

maybe (probably) it's more simple to write some php form to store data, but i was wondering if there was something ready to use with a nice layout and I've found cms made simple. Don't know if there are other simple solutions...
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Creating forms

Post by Jeff »

You are correct you will need to right a simple UDT to store the data in the table for your other program to read.
Schumy
New Member
New Member
Posts: 5
Joined: Tue Jun 16, 2009 3:53 pm

Re: Creating forms

Post by Schumy »

NaN wrote: Maybe you could use Formbuilder, an UDT and the Eventmanager to store the form data in that way you want.
ajprog wrote: You are correct you will need to right a simple UDT to store the data in the table for your other program to read.
Thanks.
I've seen formbrowser and it correctly shows me the fields as I want, but it's only a layout of the same table.
UDT= User Data Type or Table?
I can create a table on db, but could you shortly explain me how I can write there?

thank you!  :)
NaN

Re: Creating forms

Post by NaN »

Schumy wrote: UDT= User Data Type or Table?
;D No, UDT = User Defined Tag.
It contains php code.
So you can create a small script that inserts the data from formbuilder into your table.
The formbuilder creates an event if a form is submitted.
The UDT can be subscribed to that event.
This means it will only be executed if a form of formbuilder is submitted.

You also can create the whole form with an UDT.

There is no ready-to-go-solution since you need the data to be stored in a very specific way.
That means you will need some also specific code.
Schumy
New Member
New Member
Posts: 5
Joined: Tue Jun 16, 2009 3:53 pm

Re: Creating forms

Post by Schumy »

;D

thank you very much, I'll try!  ;)
Post Reply

Return to “Modules/Add-Ons”