Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [form-fields-types]

Form fields are input fields of a HTML form, that are available in Joomla, that can be used to create forms or the extensions interface where users can adjust settings. There are several standard Form Field Types available, while there is support for building custom ones if needed.

1
vote
1answer
617 views

JForm showon attribute does not work in admin site

I have a form field which needs to be shown depending on value selected for another field. For example <field name="field1" type="list" label="LABEL1" description="DESC1" filter="intval" size="1" ...
6
votes
2answers
859 views

How to use a regex to validate a FormField?

Is there a way to simply validate a form field with a regular expression? I thought about something like this: <field name="firstname" type="text" label="Firstname" validate="regex" regex="...
0
votes
1answer
129 views

Component's configuration: Save multiple values

I would like to do this in my config.xml of my component: <field name="allowedfiletypes" type="list" multiple="true" label="...
1
vote
1answer
367 views

Let JForm-Fields be dependent on eachother

I would like to solve this problem: I got some Fields in my Form. Some are Combo-Boxes, Radio Buttons, Text-Inputs and so on. Now I would like to do the following: If Radio-Button 1 has value 1, ...
3
votes
1answer
122 views

Making repetable fields inline

Does anyone know of a simple way to make the repeatable fields inline rather than popping up in a modal? Just seems silly to add all this extra content and not have a simple way of seeing what you're ...
5
votes
1answer
426 views

More info required on form field predefinedlist

Not much explanation found for the predefinedlist form field at https://docs.joomla.org/Standard_form_field_types Can someone please help me how this can be configured?
4
votes
1answer
2k views

How to show a search box inside a list form field

How to show a search box inside a 'list' type of form field?
1
vote
1answer
468 views

How can I dynamically set the directory for media field in admin

I've got 2 directories on my root: /images/ <-- with user's images /media/ <-- with system ( and components ) images The global parameter for image root is set to media but I want to decide ...
0
votes
0answers
722 views

Create forms in Joomla custom html module for multiple tables

I would like to add a form that takes input for two tables. One table with single row insert to 1st table, and the other one, with multiple rows insert to 2nd table at the same time. I have read ...
1
vote
1answer
122 views

Output repeatable field based on user defined order

I have a very basic repeatable field where I am allowing the user to enter some field along with an input where they can enter the 'Display Order' [1,2,3,4,5]. But I am struggling with how I could ...
1
vote
1answer
384 views

Add a custom button to plugin

I need to add a custom button to the toolbar inside of a system plugin, near 'save', 'save & close' and 'close' buttons. How can I achieve it?
1
vote
1answer
147 views

J3.3 custom field type - saving

I'm trying to make my own field type and it works fine so far, but the values are not saved to the DB, where do I do that? I know there is a similar question but I'm not content with the answer. #...
2
votes
1answer
234 views

Joomla list formfield stays empty on runtime load

I face the problem, that I have list formfield, where no values have been set in the xml formfield description. The values for the listfield will be created on runtime via jquery. When I choose a ...
1
vote
1answer
1k views

Joomla list form field change values on runtime

I have two Joomla list fields (drop-down fields). The the second list field is depending on the value of the first list field. Now I've tried to change the values of the second form field via jQuery ...
3
votes
1answer
150 views

JFormFieldRepeatable—can store only one row

I am trying to use the »repeatable« form field. Right now I have this in code in the templateDetails.xml <config> <fields name="params"> <fieldset name="advanced"> ...
3
votes
2answers
279 views

Module XML with SQL field (JFormFieldSQL) - Custom Form Field - Check if table exists

My module uses the sql field (JFormFieldSQL) for a few simple queries in the database for a 3rd party component. My concern is that if the tables are missing, opening the module in the admin will "...
1
vote
1answer
539 views

Showon works on plugin backend but not frontend

I'm changing user profile plugin in Joomla 3.3, using method described in http://www.inmotionhosting.com/support/edu/joomla-25/user-profile tutorial. Everything works and OK. But I want to make some ...
1
vote
1answer
836 views

Backend Delete button, doest parse the cid[] array that contains the id of checked, checkboxes

In the admin section of a component, i have this form: I just added the checkboxes in the left following this Joomla API. MyCode: $i=$rows_num; $checked = JHTML::_( 'grid.id', $i, $voter["vid"] )...
9
votes
1answer
5k views

What are possible filters in Joomla form fields?

I see intermittent use of filter="safehtml" and filter="string" throught Joomla forms. Is there a complete list, and can custom filters be created?
3
votes
1answer
1k views

Date or DateTime in database for Component Development using timezones?

Our component manages Television programming, so dates & times are critical - here's the scenario: Our server and most producers are all on local, Pacific Time (America/Los_Angeles, UTC+8) Joomla ...
1
vote
0answers
200 views

Field function return the right results but $params->get return an array full of NULLS

I had a full working module that was parsing some values from a dropdownlist at backend and it was editing those values at frontend. Yesterday a co-worker changed something and today it doesnt work. ...
6
votes
4answers
1k views

How do you specify to show only certain editors-xtd buttons on the editor form field type?

I am creating a custom component and in my form I am using the editor form field type. Here is the documentation: https://docs.joomla.org/Editor_form_field_type It seems that no matter what value I ...
2
votes
1answer
1k views

Joomla Editor Form Field in content plugin - How to load editor-xtd?

On Joomla 3.2.3, I added some custom fields to core components using a plugin (like this). It's working fine but I'd like to add the editor-xtd buttons to the customs editors added. So my question is ...
2
votes
1answer
2k views

How to add additional field in joomla 3 and 2.5?

I'm trying to add additional fields in the Joomla 3.x and 2.5 article manager as explained here http://www.kavdesign.net/blog/coding/how-to-add-additional-field-in-the-joomla-article-administrator-...
7
votes
2answers
2k views

How to insert “php code” inside the .xml manifest file of a Joomla module?

I want at the fieldset of a joomla module to echo an option with some fetched results from my db: <config> <fields name="params"> <fieldset name="basic"> <field> <?php $db ...