Jump to:
| Project: | Webform |
| Version: | 6.x-2.7 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I've been looking through the documentation, but I can't seem to find a way to achieve this. So I hope to find some good pointers here. I've attached a screenshot of the form I'm trying to make in webforms.
It doesn't have to look exactly the same, but it shouldhave the same functionality. Since the descriptions are in dutch I'll explain it a bit more. It's an order form for customers that they can fill in theirselves (Article Number, Description, Number, Price, Total are the header fields). I know that with the good JS integration in webform I can easily calculate the "Total price", so that's not a problem. But I have no idea on how to make that "grid" of textfields.
Another way to do it would be making 5 fields grouped in a fieldset where users can users have a button [ add another product ] like you see often in CCK where you can add multiple files or something. But the grid suits the use of this form a lot better off course.
Anyone has any clue of this is possible in webforms or should I do this with something else? Thanks in advance.
| Attachment | Size |
|---|---|
| webform_adv.gif | 11.98 KB |
Comments
#1
No this is not currently possible. It would require the feature mentioned in #284738: Possible for Grid to have text field? A new testGrid component.. Webform also does not support anything like CCKs "Add another" button. You could possibly make a ton of textfields then theme them all into a table (see THEMING.txt), but I'd probably discourage such a use unless you know exactly how many textifleds you require.
#2
So the example format above is not possible, but do you know if Webform has been used successfully for simple order forms? People are hinting at it (here) and it seems it should not be too hard.
But it would need some features I haven't discovered sofar:
Or perhaps this can be done together with CCK? But I'm having trouble finding examples, while Ubercart still seems overkill for the "simple order form" use case.
Anyone any thoughts to share?
#3
Well you can use Webform to collect any sort of basic data. Quantity and price fields would be just like any other text or select list fields. Any processing you'd like to do you can implement in the Additional Processing field. Overall though I would not recommend Webform for e-commerce, and certainly not for any sort of storage of sensitive data, since all transactions are not secure and stored in an unencrypted format.
#4
Closing after lack of activity.