Skip to main content

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
0 votes
0 answers
19 views

Form Field Type to browse and select a file

I'm struggling with finding a good way to have a control (or controls) on a form which allow the user to browse and select a file in a folder tree. There may be several thousand files in several ...
RogerCO's user avatar
  • 71
0 votes
1 answer
42 views

Custom Form Field Type in Module Settings not got rendered (J4)

For my Project i need to render a custom form field based on the ListField I try to use the "new" conventions for J4 and later using namespacing etc. this is the relevant part of my xml: ... ...
Marco's user avatar
  • 685
0 votes
2 answers
114 views

J4 Component: Add Modified By and Modified On Database Record when using JForm and an AdminModel Model

I am creating a new Joomla J4 component for my website. I have previously created components in J3 using Akeeba's Framework on Framework. For J4 I'm working to learn how to create a J4 MVC native ...
mb87's user avatar
  • 3
1 vote
0 answers
52 views

media field type ignores directory

I'using a xml formsource (<field name="media" ... />) in a subform for a custom field. The form is working but my directory path is completely ignored. E.g. directory="mitglieder/...
Peter Reill's user avatar
1 vote
1 answer
76 views

First showon works as expected, all others don't

I have various such pairs in a form: <field name="hasEndDate" type="list" label="Hat Enddatum?" default="1" > <...
SteAp's user avatar
  • 173
0 votes
1 answer
125 views

How to create a text form field with formated format

I am looking for an example, or a tutorial to create a customized text field for Joomla with a formatted string like xxx-xxx-xxx-xxx and a control during the input. I can use JQuery for that. Where ...
Seb's user avatar
  • 79
0 votes
1 answer
30 views

Menuitem form field type: show only components

I am building an admin side form and placed a Menuitem form field, that is working just fine. It is showing all the menu entries as expected, but I need it to list only the ones for "components&...
Alexandre Paulo's user avatar
1 vote
0 answers
59 views

Does showon work with form fields that are checkboxes?

I have a List form field type in my form, that selects (by showon) the values visible at a second (multiple) List form field type. That works fine. Something like that: <field name="animal&...
framontb's user avatar
  • 247
1 vote
1 answer
300 views

Does Showon attribute for list options work with Joomla 4?

I have tried the following exact example in the Joomla documentation: Showon attribute for list options <field name="fielda" type="list" label="FIELDA_LABEL&...
framontb's user avatar
  • 247
1 vote
1 answer
375 views

com_ajax to plugin / or plugin field

I have this customfield plugin where the user can select a folder in a popup, the call should be ajax based. The form-"field" including AJAX call etc. works already in some of my modules ...
Marco's user avatar
  • 685
2 votes
1 answer
59 views

Creating a field plug-in, need the com_content form to be enctype multipart

I've been writing a field plug-in for adding files to articles in com_content. I've got the basics of the field plug-in working ok, extending the JFormFieldFile class The issue I've hit is, for the ...
AndyGaskell's user avatar
2 votes
1 answer
928 views

How to override a form field in Joomla 4

I have the following field in my module's XML: <field addfieldpath="/modules/mod_xxxxxx/fields" name="icon" type="filelist" label="Icon" />...
Lodder's user avatar
  • 26.9k
0 votes
2 answers
186 views

Form-Fields-Fieldset-showon issue

For a component I have a field item_type that needs to be saved in its own database column for ease of searching, filtering etc, and a set of configurations which have global option defaults so are ...
RogerCO's user avatar
  • 71
1 vote
1 answer
159 views

Adding extra field to joomla categories

I need help in adding extra fields to Joomla categories(not article) in my custom component categories and I didnt find any documentation for that. I want to add a time field to categories. I tried to ...
Amit Ray's user avatar
  • 237
1 vote
2 answers
800 views

How to dynamically reload admin-form-fields in Joomla

In a custom component, I'm developing an admin form with 2 fields, a combo-box for jobTitles and checkboxes for technologies. Both fields are loaded from a database table. The values of the checkbox ...
Stefan Anders's user avatar
1 vote
1 answer
343 views

How adjust "Maximum upload size" indicator for file upload?

Joomla prints a short notice regarding the Maximum upload size when including a file upload field with the standard form field file, see code and image below: <field name="image" ...
jost21's user avatar
  • 239
2 votes
1 answer
226 views

I'm trying to make a custom form field to show CSS and JS but I can't get it work

I've copied the instructions here: How to add CSS/JS/an Image to a module backend modulename.xml <config> <fields name="params"> <fieldset name="basic" ...
Eoin's user avatar
  • 1,976
1 vote
0 answers
89 views

Showon field attribute targeting field from a group to root

So this is an example XML: <form> <fieldset> <field name="field1" type="text" default="" label="" description=""> ...
Mike's user avatar
  • 351
1 vote
1 answer
337 views

Custom field type with showon attribute for list options

When creating a showon attribute in list options one can do that in form XML since Joomla 3.9 like this: <field name="fieldx" type="list" default="0" label="...
Mike's user avatar
  • 351
0 votes
1 answer
73 views

Is it possible to change what value appears in user form field?

I created a module that allows administrators to select a specific user for the module to handle. Problem is, the once a user is selected in the modal, the field displays the user's name and my ...
Chaosxmk's user avatar
  • 338
0 votes
2 answers
770 views

How can I set the option values of my custom list formfield

I have created a custom form field which extends the list form field. I takes some JSON and creates the form options. I used this documentation: https://docs.joomla.org/...
Eoin's user avatar
  • 1,976
0 votes
1 answer
146 views

How can I create a custom list formfield from json

I need to create a custom formfield like so: https://docs.joomla.org/Creating_a_custom_form_field_type But the data I want to populate the list with is in a json file. So I can't really do a PHP ...
Eoin's user avatar
  • 1,976
0 votes
2 answers
241 views

Joomla Calendar format not displaying the correct format

Below is my calendar field in the form <field name="job_next_run_date_time" type="calendar" label="JSCH_JOBV_NEXT_DATE_TIME" description="...
Malaiselvan's user avatar
  • 2,731
1 vote
1 answer
310 views

Default options on a multi-select form field using setFieldAttribute

We got a custom jform field as below <field name="select_course" type="courselist" label="Select Course" multiple="true"> </field> Assume the ...
Malaiselvan's user avatar
  • 2,731
0 votes
1 answer
180 views

How to override "Select an option" header for SQL and list fields

In my custom component, inside the forms, I have several list fields. Some are normal list fields, others are sql fields. All of these show "Select an option" as a header. I can't find the way to ...
TVBZ's user avatar
  • 213
0 votes
1 answer
77 views

Is it True that you can add Syntax to the Editor Form Field Type?

I was looking into the Editor Form field and I came upon this page: https://issues.joomla.org/tracker/joomla-cms/20062 Which shows this: <field name="css" type="editor" filter="raw" editor="...
purple11111's user avatar
0 votes
0 answers
158 views

Joomla datepicker field issue

Can someone help please? I'm working on a simple component which displays events. The component allows events to be submitted from the frontend. The form uses the Joomla datepicker. The problem I'...
JJBW's user avatar
  • 43
3 votes
1 answer
483 views

Joomla 4 addfieldpath

Has the addfieldpath parameter in custom extension forms changed in Joomla 4? The Joomla admin is no longer finding my component's customized field types. I'm using addfieldpath="/administrator/...
user101289's user avatar
  • 1,119
0 votes
1 answer
281 views

Is it possible to edit the SQL custom field to be multi-select?

I want to be able to select multiple values with the SQL custom field. Is this possible? When I use a query which as multiple results, I can only pick one. I found this post: Creating custom field ...
twan's user avatar
  • 129
1 vote
1 answer
142 views

Code for the Content Language Field type

What is the proper way to call for the Content language field type. My below code works but I don't use the content language field type. I am building a drop down from all available languages. $...
Niel Buys's user avatar
1 vote
1 answer
771 views

Joomla 4 - import parent field class into extending field class issue finding the files

Testing my Joomla 3.9 extensions in Joomla 4, some of them didn't work, because, as instructed with the (probably) old documentation my custom fields use jimport('joomla.form.formfield'); ...
thednp's user avatar
  • 415
1 vote
2 answers
564 views

Extended subform field use own layout from template/html folder

I've created an extended subform field type called families.php, basically I want to have my own custom layout for this custom field, it makes sense I don't want to mess up everything just for this ...
thednp's user avatar
  • 415
0 votes
1 answer
53 views

Missing form data from being saved in Contact Component

In the Contact component, I have edited the file "contact.xml" I changed the textfield named con_position from type="text" to type="calendar". Here is the code: <field name="con_position"...
Tangent's user avatar
3 votes
1 answer
394 views

How to use the showon attribute with multiple conditions?

In a 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 ...
Znort's user avatar
  • 33
2 votes
2 answers
426 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=...
mixahlos's user avatar
  • 418
0 votes
1 answer
153 views

Joomla editor field type text not posted when submitted

I'm working on a custom joomla module. It has a form with an "editor" type field. The fields are defined in the related xml file: <form> <fields name="main"> <fieldset name=...
wanderlusted's user avatar
0 votes
1 answer
76 views

How to retrieve the default site template in my xml module?

I wish to add a formsource to a subform in my custom maded module. The example code: <field type="subform" formsource= "templates/DEFAULT_TEMPLATE/MY_MODULE/SUBFORM_NAME.xml" >
Uziel Almeida Oliveira's user avatar
1 vote
1 answer
230 views

How can I enable the created date for an article to be edited in the front end?

I don't know how to enable editing the created date of an article in the front-end, after updating to Joomla 3.8.10. So far I used to override the article's edit form com_content -> form > edit #...
Stuart's user avatar
  • 11
5 votes
1 answer
507 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 ...
mickmackusa's user avatar
  • 4,826
0 votes
1 answer
32 views

Field of type contact

In a form of a custom component, how can I add field of type contact instead of type user?
dolma33's user avatar
  • 177
1 vote
1 answer
65 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 ...
dolma33's user avatar
  • 177
2 votes
1 answer
46 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 ...
Eoin's user avatar
  • 1,976
2 votes
2 answers
2k 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 ...
Eoin's user avatar
  • 1,976
1 vote
3 answers
6k views

How to add placeholder to input field via php variable

In my login form, custom layout fields are displayed by the $field->input variable. Unfortunately, those fields are displayed without the placeholder attribute. Is there any way to add this ...
X9DESIGN's user avatar
  • 111
2 votes
2 answers
2k 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 ...
maleman's user avatar
  • 65
0 votes
2 answers
164 views

Joomla custom fields management

I'm new to Joomla'scustom fields and also don't have a deep knowledge of Joomla. I need to create a custom field name "Speakers" to associate to a event. It's a multiselect field so that ...
user1463905's user avatar
3 votes
2 answers
661 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 ...
GDP's user avatar
  • 7,715
1 vote
1 answer
62 views

Showon="foo:1[AND][bar:2[OR]bar:3]"

Can I do a nested AND / OR statement in Joomla! showon? At present if a field is hidden but selected then my other field will show. So: Type of Vehicle Car Bike Car Make Alpha Ford Skoda Car ...
Eoin's user avatar
  • 1,976
3 votes
1 answer
336 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="...
FFrewin's user avatar
  • 19.7k
5 votes
2 answers
584 views

Custom Form Field not working in Windows environment

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/...
xola's user avatar
  • 163