Joomla Webform alternative: JForms
I don’t use Joomla, but sometimes a friend or a colleague of mine ask me some tips. My answer could be: in Drupal it will take 5 minutes.
Since I’m very open-minded, today instead of replying in that awkward way I try to found an alternative to a very useful module for Drupal called Webform. I’ve found a limited but working equivalent for Joomla called JForms.
Tested on:
- Joomla 5
*
Installation:
Install the extension using URL installation and paste the extension link (zip file from link above). Create a new form (see the visual howto below) with at least one field, one button, a form title, and a Thank you page (eg. index.php) Save the form. Create a new menu item from Menu \> Main Menu \> JForms \> Standard forms and fill the Select Form field.
Now that you’ve a form, you can use it from your site (click on menu item written created on (4) ).
If you have to link two forms together (eg. Customers -\> Company), you have to use the DBList field.
Create the Firm form Create the Customers form On Customers form add a DBList field
DB List field must have these values:
| | | |-------------|--------------------| | Table name | \#\_\_jforms_9c7aa | | Field key | id | | Field value | hcf94 | | Field sort | hcf94 |
- Table name is the table name (mydbprefix_jforms_9c7aa) with the placeholder \#\_\_ instead of mydbprefix\_.
- Field key is id. The form select value will be set to an univocal id instead of the raw value.
- Field value: value as displayed by the user.
- Field sort: sort the list by this field.
HTML result:
<select style="width: 70px;" id="h4443_14" name="h4443[]"> <option selected="selected" value="1">Barilla</option> <option value="2">Parmalat</option> </select>
When creating a new customer, you’ll see a dropdown with a list of companies from the Company table and the two forms are connected.
See also:
*
*
- http://jforms.mosmar.com/wiki/7/elements/dblist (partially wrong howto)
https://web.archive.org/web/20110506000000*/http://joomlacode.org/gf/project/jforms/frs/?action=FrsReleaseView&release_id=12318 (https://web.archive.org)
https://web.archive.org/web/20110506000000*/http://jforms.mosmar.com/ (https://web.archive.org)
https://web.archive.org/web/20110506000000*/http://www.youtube.com/watch?v=cL98P3GBJsA (https://web.archive.org)
https://web.archive.org/web/20110506000000*/http://jforms.mosmar.com/wiki/0.7/elements/dblist (https://web.archive.org)
(partially wrong howto)</li> </ul> (https://web.archive.org)
Response: 20 (Success), text/gemini
| Original URL | gemini://chirale.org/2011-05-06_430.gmi |
|---|---|
| Status Code | 20 (Success) |
| Content-Type | text/gemini; charset=utf-8 |