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.

Filter by
Sorted by
Tagged with
2
votes
1answer
316 views

Form field “checkboxes” mutliple default values

When using a form field in an extension, you can normally define a default value, for example with a radio button: <field name="something" type="radio" class="btn-group" default="1" label="...
2
votes
1answer
114 views

Custom Form Field Type available for all extensions?

I am making my custom form field types and I would like to make them globally available for all forms everywhere in Joomla. Is there any certain location that can be used for this purpose, other ...
1
vote
2answers
844 views

Where can I find a good tutorial and/or example for creating front-end forms in custom components?

I'm building my first component for Joomla 3.x (I don't need support for 2.x). I've created my models (and unit tested them). I'm now ready to create the views. To start I just want to create a simple ...
0
votes
1answer
178 views

Displaying a filelist field from php

I am creating a custom form field inside a module that generates groups of fields according to total number of records in a database table. Inside the groups of fields there are text fields but also ...
2
votes
1answer
85 views

What is Form Field Type _combo_ good for?

The Form Field Type Combo doesn't make any sense to me according to the documentation. It doesn't offer any configuration option to define a list of options. If it's only meant to be the base for ...
0
votes
1answer
595 views

How to get articles categories in config.xml - Categories / SQL form field type?

With this given category field I want to show the article categories. <field name="import_category" type="category"label="test" description="test" extension="com_test" /&...
3
votes
1answer
132 views

Media field use local or remote file

I have looked all around for the use of the media field, and I see that is to load local files only. I need to use it to load not only local but also remote images. I notice that if I put a URL to ...
3
votes
3answers
1k views

How to display the selected radio value in Joomla (3.x)?

I'm developing a Joomla component. I created a form which contains a radio list so in the xml form I have: <field name="testradio" type="radio" default="0" label="Select an option" description=""&...
1
vote
1answer
125 views

Filter for filelist box to load only png files

I am using a field for filelist where I want to bring only png files <field name="menu_icon" type="filelist" default="" hide_default="true" required="true" ...
1
vote
2answers
250 views

Remove Archived option from status field

I use the below form field in the filter_mypage.xml of my custom component. <field name="state" type="status" label="JOPTION_SELECT_PUBLISHED" onchange="this.form.submit();"> ...
0
votes
1answer
762 views

How to get repeatable form-field data?

I'm using Repeatable field Type. The data from database are: {"social_icon":["fa fa-facebook","fa fa-twitter","fa fa-linkedin"],"social_link":["https://www.facebook.com/user","https://www.twitter....
3
votes
3answers
1k views

How to add the “Tags” form field type inside the frontend of a custom component

I would like to add a similar to default articles tag field type: A dropdown with predefined selects, but someone can add their own values also. What type of field type is this? And how could I add ...
0
votes
2answers
168 views

Unable to post multiple selection custom listbox values from register form

I have created a multiple selection list in registeration form so on the registeration.xml i have pasted this code <field name="groupMember" type="list" description="choose ...
1
vote
1answer
780 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
1k 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
136 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
445 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
140 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
490 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?
5
votes
1answer
3k 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?
2
votes
1answer
542 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
780 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
136 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
426 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
155 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
259 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
2k 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
151 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
297 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
565 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
909 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"] )...
12
votes
1answer
7k 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
204 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 ...
3
votes
1answer
2k 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 ...

1
2