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
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 ...
1
vote
2answers
367 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 ...
1
vote
1answer
45 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
3answers
4k 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 ...
1
vote
1answer
54 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 ...
1
vote
2answers
366 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 (...
1
vote
1answer
453 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
597 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
43 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 ...
1
vote
1answer
147 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" ...
1
vote
1answer
98 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="...
1
vote
1answer
122 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 ...
1
vote
1answer
138 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 #...
1
vote
2answers
609 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
52 views

Joomla component custom field (listfieldtype) and how to reproduce textstrings in view in stead of number values

I'm building a Joomla component and want a specific field (listtype) in component. In administrator/component/com_test/models/forms/testfield.xml I've following code: <field name="test" type="...
1
vote
1answer
148 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
167 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. #...
1
vote
1answer
965 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"] )...
1
vote
0answers
68 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=""> ...
1
vote
1answer
98 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. $...
1
vote
1answer
254 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'); ...
1
vote
0answers
206 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. ...
0
votes
2answers
39 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 ...
0
votes
2answers
121 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/...
0
votes
1answer
142 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 ...
0
votes
2answers
66 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="...
0
votes
1answer
37 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="...
0
votes
1answer
42 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"...
0
votes
1answer
127 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=...
0
votes
1answer
70 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" >
0
votes
1answer
31 views

Field of type contact

In a form of a custom component, how can I add field of type contact instead of type user?
0
votes
1answer
433 views

Radio form field - can value be a string?

I'm using the Joomla radio button form field type and am having trouble with option values that are strings. I'm not sure if I'm doing something wrong or if there is a bug there. So in my component ...
0
votes
1answer
86 views

I want to create a module that shows the content of an article

I want to create a custom module that shows the content of an article, I need to know two things: 1) What form field should I use in order to select the article that I want to use from the backend?. ...
0
votes
1answer
364 views

Customization Of Joomla! Form Fields In Frontend (Tag Field Specifically)

Is there anyway to customize how a standard Joomla! field type displays in the front end? I have created a form and every field looks fine EXCEPT the "tag" field type which for some reason is styling ...
0
votes
1answer
472 views

How we can allow user to select country from other table in our component

I wanted to show list as input field of joomla and options should be from other table. I also need one static opition like ALL. WHAT I Have to do ? I am using joomla 3.6 latest. I am asking fod multi ...
0
votes
1answer
821 views

How do I save Repeatable data in my component model?

I've used Repeatable fields in component Options in the past, and am now trying to use that field type in a Form within my component, but the values are not being saved. Using Firebug, I can see that ...
0
votes
1answer
185 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 ...
0
votes
1answer
629 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" /&...
0
votes
1answer
905 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....
0
votes
2answers
185 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 ...
0
votes
1answer
140 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="...
0
votes
0answers
3 views

Custom Javascript function on event Change for a Form field

In a form field of a custom component, I want to specify a javascript function for an onchange event like this: <field ... onchange="myCustomJavascriptFunction();" ...
0
votes
0answers
24 views

How to get current values of subform?

I want to create multiple subforms. The first one will define breakpoints and give them a name, e.g. between 0-759 = mobile. The second subform I want to use an image for that size. So I'd like to be ...
0
votes
1answer
53 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 ...
0
votes
1answer
59 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 ...
0
votes
1answer
91 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 ...
0
votes
0answers
115 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'...
0
votes
2answers
146 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 ...
0
votes
1answer
469 views

How to implement a phone number field mask in custom component?

How can I implement an input field mask for JForms in my component? Specifically I want a phone number mask something like ()-____. I only want users to enter digits and not have them enter ...
0
votes
0answers
803 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
2