Questions tagged [fields]

For questions regarding Joomla's Custom Fields

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Is it possible to duplicate a fieldset in joomla form

I have a system plugin that uses the onContentPrepareForm event to load an xml form fieldset definition into the Joomal CMS Form Object. FormHelper::addFieldPrefix('DeAnima\\Plugin\\System\\...
James Wadsworth's user avatar
0 votes
2 answers
82 views

Get the form fields as defined in the form xml file

I have a set of fields that have been defined in an xml file and then I load the fields with $form->loadFile('myFormName'). Before displaying the fields I would like to manipulate the fields based ...
James Wadsworth's user avatar
0 votes
1 answer
31 views

Article fields layout

I am using Joomla 4 with casseiopa template. I have created a load of custom fields where the layout ends up like this: <ul class="fields-container"> <li class="field-entry ...
j00m's user avatar
  • 191
0 votes
1 answer
58 views

Joomla Calendar field does not work when given format as D dS M Y

In my XML form, I have given a calendar field in the format='D dS M Y' which is as follows <field name="certificationdate" class="inputbox" format="D dS M Y" ...
user4571727's user avatar
0 votes
1 answer
197 views

I need a simple Example of a Custom Field in a Joomla 4 Component

For my Project i need to have a Custom Field that gets all "Sponsors" from a related table, the user can then select the items and link them to a "location" so define the sponsors ...
Marco's user avatar
  • 651
0 votes
1 answer
72 views

Is it possible to create two category fields in the same table with different menu categories to each of them to add new category

For example, in my table #__shopping_details I want to add two category fields so I added <field name="shopping_account" extension="com_shopping.shoppingdetails" type="...
user4571727's user avatar
1 vote
1 answer
65 views

Ordering items function deletes connected field-items of another table

Initial situation: I have implemented the J4 ordering function in different views of a component. It works fine so far, although the component was not really rewritten for J4. . Problem: When I change ...
Steven's user avatar
  • 35
1 vote
1 answer
28 views

Display only one Category and its sub-categories

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique. In my filter form, I ...
DeesreX's user avatar
  • 87
1 vote
1 answer
155 views

How do I insert multiple records?

First, I took user_id, name, and email for the #__users table and joined with custom #__field_values lot, address, and phone. $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->...
andrew913's user avatar
2 votes
2 answers
529 views

Custom multiselect field not working in J4

In my Joomla 3 component, i have a custom field that is a select list with multiple=true. The values of such an select list are binary handled like 1,2,4,8,16. When storing, the values are getting ...
maidan's user avatar
  • 413
2 votes
2 answers
706 views

How to join custom fields data to users table without extra rows in result set

I have rudimentary knowledge of SQL (when it comes to anything but single tables) and am trying to come up with a query that will give me all the custom fields for my users. This query will give me ...
Josef Zeevi's user avatar
2 votes
1 answer
58 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
1 vote
1 answer
315 views

Show article fields in module

I have two custom fields in my article for longitude and latitude. I'm then trying to build a module to get these two fields from the current article displayed and show in the module. I have the ...
RustyJoomla's user avatar
  • 2,078
2 votes
1 answer
223 views

How to update colorpicker fields to Joomla 4.x

Older versions of Joomla were able to just use JHtml::_('behavior.colorpicker'); and then have inputs with the class minicolors minicolors-input to use a color picker. That functionality no long ...
Chaosxmk's user avatar
  • 338
1 vote
0 answers
143 views

Custom layout path for fields

I have a central library \libraries\mylib\ containing some models, tables, helpers and stuff all of my components use. I also have a folder there containing some custom fields i use. It is simple to ...
maidan's user avatar
  • 413
1 vote
1 answer
38 views

Should language file definitions/translations be used by multiple forms with the same text?

If you have a set of forms and some of the same fields are used on each form, do you create a language definition for each form's version of the field or just create a definition for the field? For ...
mfleeson's user avatar
  • 128
1 vote
1 answer
233 views

Repeatable field not visible anymore?

I need to use the repeatable field, but on a installation thats a but older there is no repeatable field available. Does anyone know how to install this?
Kuubs's user avatar
  • 345
0 votes
0 answers
101 views

Own Custom Field Plugin - Multiple Inputs

I am currently creating a custom field plugin for Joomla! I am now faced with the task / problem that the user needs more than just one field when adding the information. In detail it is so that it is ...
Marco's user avatar
  • 651
1 vote
0 answers
86 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
324 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
1 vote
2 answers
236 views

Fields component media field using absolute url instead of relative

I use the Fields component and I have a field "Media". You can choose an image this way. But this spits out a full tag. This should be no problem but in my case I need it to be a full ...
Kuubs's user avatar
  • 345
0 votes
1 answer
74 views

joomla returning invalid fields for user registration

I've added in custom fields for joomla registration, however it's returning them as Invalid Fields? $requestData = $this->input->post->get('jform', array(), 'array'); echo '<pre>';...
Leanne Seawright's user avatar
0 votes
1 answer
95 views

Joomla Field autopopulate on select of another field

I am trying to make a Registration form for my department. We have Divisions and under each divisions we have several Sections. My purpose was during registration if an employee selects Division only ...
Amit Ray's user avatar
  • 237
0 votes
1 answer
191 views

Render field in backend record form from plugin xml file

I'm building a component with payment plugins and I need to display the plugins fields in the account form record. The plugin xml fields section is <fields name="params"> <fieldset ...
Jeremie's user avatar
  • 21
0 votes
1 answer
125 views

Custom fields published state not working as expected

I am using the following code to check to see if my repeatable custom field's state is published/unpublished. If the state is set to 0, the code in between should be hidden, but instead an error is ...
Mike Hermary's user avatar
2 votes
1 answer
358 views

Override output for repeatable custom fields

I am struggling to find a way to output the values from a repeatable field in Joomla 3.9.15. I am currently accessing the custom fields assigned to articles using the following code: JHtml::...
Mike Hermary's user avatar
0 votes
1 answer
56 views

How to make field attribute label work

Recently, I add a field tag into the filter_workitems.xml, which looks like: <field name="show_this_week" type="CheckboxCustom" label="sohw this week" description="" value="1" class="" onclick=" ...
Ryan Ye's user avatar
  • 43
3 votes
3 answers
1k views

How to execute an ajax script to update form fields in an .xml file rendered by Akeeba FOF?

I would like to populate the "Owner" select option list by SELECTing the owner column from the #__gscrm_accounts table WHERE the gscrm_account_id (primary key) is the selected "Person or Business" ...
mickmackusa's user avatar
  • 4,791
0 votes
1 answer
40 views

How to identify which JForm list field triggered the submission of my form?

I´m working on a JForm with some list fields. As the fields have a cascading relationship (and I did not want to work with AJAX at this time) I submit the form, whenever the selection of one of the ...
wanderlusted's user avatar
0 votes
1 answer
440 views

Form validation in Joomla with form rules doesn't work

It will try to include new rules to validate the fields of a form and it does not work. I can not even get messages on the screen. Am I missing something in the code? Here is my code: <form ...
Norak's user avatar
  • 111
1 vote
1 answer
414 views

Call to a member function get() on null when adding extra custom fields in default.xml

I'm building a Joomla-component (as an example I use com_weblinks) and in the category view I want to have extra fields, e.g. a field for choosing from several layout themes. In default.xml I've added ...
Franky's user avatar
  • 65
0 votes
1 answer
271 views

Use the “sql” form field type in extension xml only if the table exists

I developed a plugin for Joomla!, and I have the below sql parameter field in my sampleplugin.xml <field name="cb_fields" type="sql" label="Select CB fields" query="SELECT name ...
ahmad's user avatar
  • 21
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
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
0 votes
1 answer
48 views

How could I make Joomla! fields as a function

<?php // Turn fields from array numbers into field names. I usually stick this in the head somewhere. foreach($this->item->jcfields as $jcfield){ $this->item->field[$jcfield-&...
Eoin's user avatar
  • 1,909
0 votes
2 answers
134 views

Jform checkbox not updating in a Module

Sorry I am new to Joomla. I am trying to resolve an issue with the checkbox not updating on the module. I don't see any updating code specified in PHP, but somehow Joomla is updating it. Can someone ...
Suthan Bala's user avatar
1 vote
1 answer
589 views

Custom fields don't render plugin shortcode

I am using custom fields introduced in Joomla 3.7 as a way to structure articles in my Joomla 3.8.3. installation. One of my custom fields contains shortcode to be rendered by another plugin. But all ...
user avatar
1 vote
0 answers
47 views

Seeking Joomla module to display selected articles and their fields

Seeking for a module similar to DisplayNews with advanced functionality. I need to modify the display template in such way that it shows specific Joomla Fields of the articles selected. Here is a ...
Ross's user avatar
  • 133
2 votes
2 answers
81 views

Why doesn't this 'usergrouplist' field show a label?

To elaborate: The component's configuration is supposed to show a field where i choose which usergroup gets access to a certain view. The fieldtype used is 'usergrouplist'. I've also tried 'usergroups'...
Glitch's user avatar
  • 287
3 votes
2 answers
2k views

Joomla 3.7.x PHP API set value of custom user field

I'm writing a PHP script that goes through the users, and reads and writes some custom user fields. The reading part is done, by the use of the FieldsHelper. It works nicely. However, trying to write ...
Laureant's user avatar
  • 161
1 vote
1 answer
331 views

Joomla media extra field without Alt tag

I've created an additional media field to include in some articles, and I noticed that the ALT and Title attribute for the media field can not be set to the image. I need suggestions for an override ...
Joso's user avatar
  • 185
2 votes
1 answer
235 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 ...
Ruchika's user avatar
  • 415
11 votes
1 answer
6k views

Form field "showon" with multiple fields

I have 3 fields defined in my XML file like so: <field name="field1" type="radio" label="Field 1" class="btn-group" default="1"> <option value="1">JYES</option> <option ...
Lodder's user avatar
  • 26.9k
1 vote
1 answer
81 views

Calendar Field Type

I have implemented a module which has a Calendar Type as following: <field name="file2calendarEnd" type="calendar" default="5-10-2008" label="End date" description="Select when the slide will be ...
Linkaara's user avatar
2 votes
1 answer
508 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="...
Lodder's user avatar
  • 26.9k
1 vote
1 answer
457 views

DPFields display values in module

I've been using the Joomla extension DP fields to add fields to the joomla content model. The extension is great, I started using it after watching Macro Dings' talk at Joomla Day UK 2016 on YouTube. ...
AndyGaskell's user avatar
0 votes
1 answer
274 views

Make one of select fields required in a form

I have this form. <?php // No direct access to this file defined('_JEXEC') or die('Restricted access'); JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidation'); JHtml::_('behavior....
Fernando Augusto's user avatar
0 votes
2 answers
128 views

Do I need a custom field for a db field alias?

When viewing an individual record, I'm using a calculated field from a sql query to display as a read only field in my form. However I'm unable to get it to display (no error, just blank). Curious, do ...
Mhaddy's user avatar
  • 51
3 votes
1 answer
2k views

How to conditionally show fields in module xml?

I created a simple module to enter values in textfields which I show in module positions on the frontend (banner images...). Now I need a solution like if dropdown value in fieldname "xy" is "xyz" ...
public9nf's user avatar
  • 265
1 vote
1 answer
287 views

Calling module params from custom field type

I've created a module which has a number of settings, one of which uses a custom field type defined within my module. The custom field essentially generates a dropdown list which is populated with ...
Joseph Boyle's user avatar