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 [fields]

The tag has no usage guidance.

2
votes
3answers
127 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" ...
0
votes
1answer
27 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 ...
0
votes
1answer
24 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 ...
0
votes
1answer
40 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 ...
0
votes
1answer
37 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 ...
0
votes
2answers
962 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 ...
0
votes
1answer
34 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-&...
0
votes
2answers
76 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 ...
1
vote
1answer
170 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 ...
1
vote
0answers
30 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 ...
2
votes
2answers
34 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'...
3
votes
2answers
961 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 ...
1
vote
1answer
204 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 ...
1
vote
1answer
129 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 ...
9
votes
1answer
2k 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 ...
1
vote
1answer
67 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 ...
3
votes
1answer
197 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="...
1
vote
1answer
414 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. ...
0
votes
1answer
193 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....
0
votes
2answers
98 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 ...
1
vote
1answer
202 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 ...
0
votes
1answer
129 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="...
4
votes
1answer
676 views

Range form field type

I read here that there's a new range form field type since J! 3.2 that will provide a horizontal scroll bar to specify a value in a range. But when I opened the description page, there is no ...
0
votes
1answer
368 views

SQL multiple filter doesn't work

I recently created a custom component for Joomla! 3.x designed to handle quotes. It's quite simple: I insert various quotes in the database and I want to show them in frontend lists. I also created ...
7
votes
2answers
1k views

Is the new 'showon' attribute only for back-end forms?

I tried using the showon form field attribute in a front-end form with no working results. Not even the example given here is working: https://docs.joomla.org/Form_field#Showon Is there anything ...
2
votes
1answer
61 views

Saving mobile no in database save filtered no

I'm developing a component in which I'm taking the value from a user in the backend using an edit form, but when I type my 10 digit mobile number in the field, it automatically converts it into ...
0
votes
3answers
520 views

Remove form fieldset

I am trying to remove a fieldset from a form. I have not found a function that does this, so I do it through an array to remove them individually. $infofield = $form->getFieldset('company'); ...
1
vote
2answers
669 views

3.x form array?

Is there a way to have the same field in an array when posting the data? Since I need the tabs in my component to be generated dynamically depending on the querys output, I can't enter them ...
2
votes
1answer
234 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
511 views

HTML code disappears in module backend field after save

I'm creating a module, where the user posts a HTML code on the backend and it will be rendered on the site page. However, when I save the module content, the HTML disappear and just plain text is ...
0
votes
1answer
1k views

Is it possible to pass data to custom form fields files from a loaded form?

In my custom component, under the models folder, is the fields folder which contains the php files for dropdown lists in the .xml by defining its type. For example, I have a schema.php file in the ...
1
vote
1answer
191 views

Override field with custom field and custom form submit in Template Manager

I'm building a new Template for Joomla 3.x and I want to make it easy for the user... In the template manager I want an 'Upload Photo' file-field. This is no problem; just define it in ...
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?
1
vote
1answer
103 views

How do I pass the generated form together with the custom fields to model class?

I have this code here, which I modified in the getForm function from my Model Class: $elementHeader=' <fieldset name="reportFilters">'; $elementName = $elementHeader; $form ...
2
votes
2answers
1k views

How to access a specific fieldset in a form in my model class?

I am using the code below for getting form values: $data = JFactory::getApplication()->input->get('jform', array(), 'array'); However, when I use json_encode, it encodes all the form fields I ...
4
votes
2answers
2k views

How to access / modify custom form fields values

I was able to create dynamically the form fields by retrieving them from the database by using this as a guide: How can I dynamically generate a form's XML from PHP? I just want to know on how ...
4
votes
2answers
615 views

Trying to save multiple field in Plugin

I can add a multiple select field to my plugin's xml file, like this for countries but when I save it, it only saves the value "array" in the parameters. I would like to save it as a comma separated ...