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.

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?
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 ...
7
votes
1answer
365 views

Form Field showon:"empty

Using this documentation https://docs.joomla.org/Form_field I have developed a plugin and used the showon attribute within the XML (head to the bottom of that page). Whilst is shows me I can use ...
7
votes
1answer
905 views

Calendar Field Showing Incorrect Date

I am using the Calendar form field type and am experiencing an odd result. I am passing in a date of 03/23/2016 as a string and it is instead showing 03/22/2016. This is true for all dates I have ...
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 ...
6
votes
2answers
851 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="...
5
votes
3answers
8k views

How to get module parameters inside helper function and how to get params inside a custom form field type?

Part 1: How to get module parameters inside helper function? I am trying to get the same module parameters inside the helper file. class ModTestHelper { public function getFoo () { ...
5
votes
1answer
423 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?
4
votes
1answer
136 views

How to generate a dynamic note field for a custom component?

I am attempting to develop my first custom component called com_image. Because of the structure and function of my project requirements, it made best sense to clone the com_contact folder and ...
4
votes
1answer
122 views

Tags filter field - how to add custom “placeholder”?

I have added a tags filter in my component's list with multiple enabled. <field name="tag" type="tag" label="-Select a Tag-" description="Filter by Tags" multiple="...
4
votes
1answer
297 views

How to Order the fieldsets for a joomla module manualy?

I am currently developing a joomla module. For detailed settings i have created two fieldsets - as you can see in my screenshot. Is there any way to sort the fieldsets to bring "chart data" and "chart ...
3
votes
1answer
196 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="...
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 "...
3
votes
2answers
293 views

Custom Form Field not working

My attempt is to re-build the example here: https://docs.joomla.org/Creating_a_custom_form_field_type Somehow, Joomla doesn't see the City.php file in administrator/components/com_testing/models/...
3
votes
1answer
535 views

Subform multiple data not saving

I'm trying to use the Joomla subform field with multiple="true" on (instead of using the old modal repeatable method). My problem is that the data is not saving to the database. I have read multiple ...
3
votes
1answer
103 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
880 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 ...
3
votes
1answer
109 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 ...
3
votes
1answer
68 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 ...
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 ...
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
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 ...
3
votes
2answers
86 views

How can I change the Class of SELECT fields that Joomla generates'

I've disable chosen.js so that all my <select> tags are plain HTML, but am so far unable to change the default class of inputbox to one of my choosing, (specificially from the Search Tools ...
3
votes
3answers
855 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=""&...
2
votes
2answers
45 views

What does sql_select=“e.*” do?

On https://docs.joomla.org/SQL_form_field_type it talks about using the SQL fields. I'm wondering what sql_select="e.*" does. I know that the star is a wildcard for everything. I'm just not sure ...
2
votes
2answers
613 views

Problems with Custom form field select list

I am attempting to modify code that was created by Component Creator. The modification I am trying to make is to get the select list to save the partno instead of the index value. There are two ...
2
votes
1answer
233 views

Documentation tutorial: Why is my JFormFieldList showing a textbox?

I was going through this part of the tutorial: https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Using_the_database Except I tried using my own names instead of 'helloworld'. Everything else ...
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-...
2
votes
1answer
75 views

Calendar Field render error “Double timezone specification”

in my custom component I have a calendar field which I render in my view. Database field : Name: estEventDate Type: date Null: No Default: 0000-00-00 XML Field : <field name="estEventDate" type=...
2
votes
1answer
29 views

I change list value in module but it does not change in params

I have a list Joomla! form field in my XML, it works in the back end, I can change the dropdown. When saved, the item stays the same. When I print_r($params) The value is outputted as "true" and ...
2
votes
2answers
352 views

How to edit 'created date' from front end

What file I have to change to edit the created date of an article from the front end? Using joomla 3.8.1.
2
votes
1answer
656 views

Render field type in custom form

I'm trying to render the media manager field type in a custom form. The form is not loaded from the xml. this code is causing an error: $obj = new JFormFieldMedia(); $obj -> __set('name','...
2
votes
1answer
233 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 ...
2
votes
1answer
48 views

Jooma showon with multiple conditions

In joomla 3.9.3 module, I'm trying, with no luck, to show/hide a field with showon by checking the values on other three fields my xml: <field name="foo" type="text" /> <field ...
2
votes
1answer
51 views

Module field type category not working

I am trying to tweak a module based on Joomshopping, a shopping cart extension. The module is called "mod_jshopping_categories", I want to add a field that is a dropdown list of the product categories ...
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 ...
1
vote
2answers
181 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();"> ...
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" ...
1
vote
1answer
100 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
1answer
157 views

XML form related fields

I need to make a form with dependent fields. I have already tried a lot of options, but have not found the right way. As in the picture below, I'm trying to load a new XML file when you select an ...
1
vote
2answers
740 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 ...
1
vote
1answer
364 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, ...
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 ...
1
vote
1answer
42 views

List of users in form

In a component, if I want to add an user field to the form, I can easily use a field of type user, and play with it as I want. But what can I do if I need a field that stores an array of users? The ...
1
vote
1answer
661 views

Dynamic fields in module parameters

I have created a Joomla module that renders a set of headlines in a widget, with links to the main item. It loads these headlines from either a Joomla category or an RSS feed, and is extensible so I ...
1
vote
1answer
382 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
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
2answers
241 views

Save multiple list custom field for component

I 've created a custom form field type class JFormFieldCategories extends JFormFieldList { protected $type = 'categories'; public function getOptions() { $db = JFactory::getDBO(); $...
1
vote
1answer
244 views

Creating custom form field type extended from standard tag field

I'm trying to create a custom form field type for my component. Functionally it should operate the same as the standard tag form field type, except I want to store the tags in my own database table (...