Questions tagged [jform]
Form Class for the Joomla Platform.
127
questions
0
votes
1
answer
178
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. ...
3
votes
1
answer
2k
views
Load a Single Admin view with multiple tables and forms
We have 2 tables that have data and we need to bring data from both the tables and show in one single view.
We have one single XML file which holds the fields of both the tables.
The function '...
1
vote
2
answers
751
views
How to set custom input data in Model
I'm using JTable for CRUD on my application. I've created method in model to save data in database
I need to add custom inputs "created" and "created_by" as shown in "$custom_data" variable and save ...
1
vote
2
answers
743
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 ...
6
votes
1
answer
812
views
Custom XML attributes not showing in HTML markup
Here is the XML for a particular form field:
<field type="text" name="first-name" id="first-name" label="MOD_LABEL_FIRST_NAME"
required="required" maxlength="27" color="yellow" />
My ...
1
vote
1
answer
2k
views
Dynamically add fields to component's menu edit form
I am looking to add parameters to the edit-view of my component's menu editor on the fly instead of statically defining them as you normally would (as described : https://docs.joomla.org/J3.x:...
2
votes
1
answer
298
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 ...
3
votes
1
answer
152
views
JFormFieldRepeatable—can store only one row
I am trying to use the »repeatable« form field. Right now I have this in code in the templateDetails.xml
<config>
<fields name="params">
<fieldset name="advanced">
...
2
votes
1
answer
310
views
Joomla 3 Flexicontent custom form based on jForm
After hours of googling and experimenting, I gave up :(
I need to add form to my articles in Joomla 3, that collects data from article's additional fields and emails them. Articles are managed by ...
2
votes
2
answers
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 ...
1
vote
1
answer
202
views
Accessing Form fields in the Model
I was able to get and set values of my custom form fields by using $form->getValue and $form->setValue in my previous issue here:
How to access / modify custom form fields values
However, I am only ...
4
votes
3
answers
2k
views
JForm::setField/s - Add field to fieldset
So I'm trying to get my head around the creation of fields on the fly using JForm::setField. But as usual there is no documentation explaining how to use this method only the very minimal API ...
3
votes
1
answer
823
views
How to add jQuery functionality in the backend of a module?
I'm making a module where the user can select some manufacturers names from the backend and the names will be posted in the index with some nice css.
I want to ask if I can add some jquery in the ...
10
votes
1
answer
3k
views
How can I dynamically generate a form's XML from PHP?
I have a requirement to generate a page/form based on the user's list of items. As is, the user can specify a list of items that have a text description of the item, and whether it's a text or list ...
9
votes
2
answers
2k
views
How can I override the class or readonly attribute that is specified in the form xml?
We have a particular field that can only allow input when adding the record for the first time, so I'm wondering if it is possible to add a class, or specify readonly at some point after the form has ...
3
votes
1
answer
1k
views
Store multiple form fields as JSON string
I'm trying to store multiple field values in a JSON string in my component but I'm not quite sure how to go about it. I've done some research and it seems that using the load and bind JTable methods ...
1
vote
2
answers
273
views
CKform Checkbox issue
I'm using Ck forms component to build my forms.
Every things works fine, except checkbox, they are not like what is planned.
My question is : how to align them one next to one, and how to match Value/...
2
votes
1
answer
1k
views
Frontend: why some fields are not in the $data param of the save function?
I'm using a frontend JForm to manipulate some data. The html form is correct, but when it is sent back to the model save function I don't receive all data.
This is the data that save receives through ...
1
vote
1
answer
1k
views
Add onclick/onsubmit event to form submit
I have made a plugin that add few fields on joomla registration form.
Now I need to add a javascript event on submit that will handle those extra fields I added, but I couldn't find any way to ...
3
votes
1
answer
2k
views
How to style a Custom Field radio list as btn-group?
I'm trying to create a custom field which is a radio list, and must be displayed as a btn group. It works as expected when using the standard type="radio"in the XML (rating2), but when rendered as a ...
3
votes
3
answers
2k
views
Overriding Core Components Model Form XML
I want to change the Field type for the Article's Links, from input text to DropDown List with internal menu items. I am looking for a convenient way to do this with the minimum work.
I can't find ...
4
votes
1
answer
2k
views
Writing custom method to save form data
I am trying to find the preferred way to save form data using joomla API methods. I am trying to save data with an ajax-call. First i tried just calling the components standard save method, calling:
...
7
votes
2
answers
2k
views
How can I provide a custom message for a failed JFormRule validation?
When validating a custom field, and the test fails, Joomla returns the following default error message:
**Warning** Invalid field: My Field
How can I specify the message that is returned to explain ...
3
votes
1
answer
3k
views
How to get the form of component from module?
I tried to get a component form from my module. I got the model and then tried to get the form, but the result was empty. I tried to define 'JPATH_COMPONENT' and it was useless.
define('...
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=...
1
vote
1
answer
359
views
Adding all form parameters in a custom item of the component
I prepared a component and i have to add different categories and custom items with lots of fields in my component.But What i want is to display all the joomla's fields for adding a new item in my new ...
4
votes
3
answers
1k
views
checkboxes field type in module settings not checked by default
I want to add following form field in module settings like -
<field name="fb_posttype" type="checkboxes" label="Post types">
<option value="status" >Statuses</option>
...