Posted by cpliakas-gdo on August 5, 2009 at 2:39pm
As a follow-up to the discussion at the meeting on August 4th, this post is a good tutorial on how to create tabular forms: http://www.akchauhan.com/create-drupal-form-using-theme_table-like-modul...
If you are interested in seeing a working example, I implemented this technique in Search Lucene API and extended it to have drag-and-drop rows. A screenshot of the functionality is attached, and you can browse the CVS repository to see the code used to accomplish this.
It was great meeting all of you!
~Chris
| Attachment | Size |
|---|---|
| drag-and-drop-facets.png | 101.99 KB |
Comments
Thanks!
Thanks so so much, Chris. I was just about to dive back into this. Perfect timing.
Customized Forms
Hi,
Could anyone send me a module that can be used create customized forms. Please donot mention the modules that use Jquery UI. As Jquery UI is not working with my Site Theme.
Many Thanks in advance.
Regards,
Dharini
Webform
The webform module should do the trick.
http://drupal.org/project/webform
Webform
Thanks Ezra,
Tried it but doesnot meet my requirement.
I need to create a form something like this:
I need a form for training module. I need to create a form which has a table with a list of the training programs wherein one can select all the desired the programs that he desires to attend(checkbox list against each row) and then submit (button at the bottom of the page) for the above selected training programs.
Could anyone please help me out. My requirement is quite urgent.
Regards,
Dharini
Well...
I would think that Webform could do that, but certainly CCK with Nodereference could do it.
Nancy Dru
2 methods
Really there are two methods (that I know of) for doing this:
Use Webform - which is mainly intended for forms that need to get submitted to somebody by email (but are also stored in database). Note that adding fields in Webform are called "components". It is not difficult, but has its own lingo. Downside is Webform submissions are not nodes, so you cannot use them in Views (that I know of, may have changed) - but often does not matter as Webform has its own list of submissions.
Create a content type for what you want and add CCK fields you need for the form. Those submissions will not submit via email without using other methods to do so, but of course will get stored in database and can list them in a View.
write your own (?)
since your requirements are specific, yet not exceptionally difficult, why not write your own module for this form? this way you can control exactly what you need and how it is presented. if you don't have much experience writing modules, this would be a perfect place to start as you will learn a lot about FAPI, which is core to writing modules.
just a thought.
Customized Forms
Many thanks for your response. My requirement is something like this:
Select | Training Program | Trainer | Schedules
___________________________________________________
(Need a
Checkbox | Training in drupal | Administrator | 10/10/2011 – 5.00PM
here)
_______________________________________________________
(Need a
Checkbox | Training in drupal | Administrator | 10/10/2011 – 5.00PM
here)
_______________________________________________________
(Need a
Checkbox | Training in drupal | Administrator | 10/10/2011 – 5.00PM
here)
_______________________________________________________
And finally need a submit button. i.e., on selecting the desired training one should be able to submit or subscribe to the selected training sessions.
I dont have much experience in writing php code or modules so please do suggest an effective solution for the same.
Many Thanks,
Dharini