Questions tagged [jform]
Form Class for the Joomla Platform.
126
questions
0
votes
1
answer
252
views
enable Selected option for a custom field extending JFormFieldList
I am creating a custom field extending JFormFieldList as below
Form field is defined as below
<field name="reltype_rev_id"
multiple="true"
type="customfield"
...
0
votes
1
answer
354
views
How to add attribute to <form> of backend for module
How can I add the attribute enctype="multipart/form-data" to the <form> tag in the configuration page for a module? That attribute is needed to upload a file to the server.
I am trying to ...
0
votes
2
answers
172
views
Form field type structure
In a Joomla 3.x plugin I need to create several new form field type and in some cases extend already existing core form fields. I know how to do it, but I have some doubts how to structure this files ...
0
votes
1
answer
411
views
Joomla JForm showon
I would like to extend the functionality of my form I'm using in my admin-backend.
To to that I would like to use the showon-attribute, which should only show a field, if the value of this field is -...
0
votes
2
answers
831
views
JSON-DATA: Display input in the com_ back-end and save data in the DB
I'm developing my custom component for storing some records in the DB. In my #__records DB table there is the column attribs where I want to store some data in json-format like:
{"field1":"value1","...
0
votes
1
answer
232
views
get value of hidden field via Jinput
hello i created a form in front via a plugin
in my tmpl i create a file value_form.php (compatible with the component)
<form id="contact-form-'.$formid.'" method="POST" class=&...
0
votes
1
answer
100
views
Get linear array of subform repeated values
So have a simple Field a user can enter some IDs in:
<field name="ids" type="subform" min="1" multiple="true" layout="joomla.form.field.subform....
0
votes
1
answer
36
views
Using a different id name for Joomla forms
I have a form in Joomla that uses XML:
<form action="index.php?option=com_content&view=contents" method="post" id="adminForm" name="adminForm">
<?php $this->form->...
0
votes
2
answers
62
views
Server name removed from text when submitting JForm TinyMCE editor field
I'm working a custom Joomla module that has a JForm with an editor field. My users use this form to edit and send some email messages to our customers. The field is prefilled by the system with some ...
0
votes
2
answers
320
views
Jform radio button not displayed or not horizontally aligned with its label
I'm working on a custom Joomla module displaying a JForm with some radio buttons. I'm using the sample code described for Joomla 3+ styling with arbitrary values described here
<field name="...
0
votes
1
answer
39
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
1
answer
410
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
1
answer
151
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
1
answer
462
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
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....
0
votes
1
answer
141
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
4
answers
977
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');
...
0
votes
1
answer
536
views
Multiple task with one
I am looking for a way to build multiple task with 1 layout/view
for example:
administrator/index.php?option=com_component&task=form.one
administrator/index.php?option=com_component&task=...
0
votes
2
answers
68
views
Fetching custom user field values in custom module
I'm having some problems with a custom module that I'm making to display some basic "logged in" user information.
I'm working on a template with "SP Page Builder" CMS.
My module:
{...
0
votes
1
answer
188
views
Optional fields in renderFieldset
I'm updating a component of mine to use the renderFieldset method and remove some unnecessary code in the form template files. However, some of my fields show / hide based on other preferences in the ...
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 ...
0
votes
1
answer
290
views
JForm::setFieldAttribute frontend vs backend usage
I'm missing something. I've written a plugin to manipulate specific custom user fields (the new custom fields extension). I create the fields, and make them required, but in /adminstrator I remove ...
0
votes
1
answer
509
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
0
answers
1k
views
Model/Controller: get id of current item and use it in controller
I got a view in my component's frontend, which catches data from model using the ID of the element:
protected function populateState($ordering = null, $direction = null)
{
$app = ...
0
votes
1
answer
83
views
Components Use form.xml without the use of any legacy classes?
How do I without using any legacy structure or classes, use the Joomla feature wich allows you to define forms in an XML file in the folder:
JCOMPONENT_PATH/models/forms
And then import and use ...
0
votes
1
answer
180
views
Joomla Form - Retrieve Values based on ID (Front End)
I'm using jform and joomla's core features of dealing with forms. i.e. Using XML as forms then storing it with JTable etc.
My custom component has to deal with CRUD operation strictly at front-end. ...