Stack Exchange Network

Stack Exchange network consists of 174 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.

2
votes
1answer
48 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=...
-1
votes
1answer
25 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=...
-1
votes
1answer
39 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" >
1
vote
1answer
35 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 #...
4
votes
1answer
100 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 ...
0
votes
1answer
25 views

Field of type contact

In a form of a custom component, how can I add field of type contact instead of type user?
1
vote
1answer
38 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 ...
2
votes
1answer
25 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
43 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 ...
0
votes
2answers
642 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 ...
2
votes
2answers
433 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
57 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 ...
0
votes
0answers
61 views

passing an array from view to controller to model

I have a component made with Component Creator. I am trying to form an array in the view, pass that array through the controller to the model, and save it to the database via a function in the model. ...
0
votes
1answer
30 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 ...
4
votes
1answer
97 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="...
3
votes
2answers
242 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/...
0
votes
0answers
38 views

Form Field, multiple choice for weekdays

using Joomla 3.8.2. I am working on a custom component. Now the thing I want is to define a form field in the backend, where the days of the week can be checked. Of course I am aware of the basic ...
1
vote
2answers
216 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(); $...
2
votes
2answers
320 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
44 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 ...
1
vote
1answer
214 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 (...
2
votes
1answer
193 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 ...
7
votes
1answer
307 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 ...
1
vote
1answer
105 views

Joomla field type as star rating

Can some one suggest that in Standard form field types in joomla 3.5 - there are many options like text, editor, file, media, radio etc But - i can not get in a star rating option I mean i have a ...
0
votes
1answer
216 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
58 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?. ...
1
vote
1answer
38 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="...
3
votes
1answer
485 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 ...
0
votes
1answer
244 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 ...
4
votes
1answer
254 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 ...
1
vote
1answer
134 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 ...
0
votes
1answer
151 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 ...
1
vote
1answer
607 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 ...
0
votes
1answer
431 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 ...
2
votes
1answer
630 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','...
0
votes
1answer
256 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 ...
4
votes
3answers
7k 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 () { ...
7
votes
1answer
769 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 ...
4
votes
1answer
164 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
1answer
104 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
691 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
133 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 ...
3
votes
1answer
65 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
429 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
92 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 ...
4
votes
3answers
806 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
91 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
162 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
507 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
0answers
112 views

Annoying problem with forms

I have a weird issue. Here is my form's xml: <?xml version="1.0" encoding="utf-8"?> <form> <fieldset name="details"> <field name="id" type="hidden" default="" label="...