Questions tagged [jform]

Form Class for the Joomla Platform.

Filter by
Sorted by
Tagged with
2
votes
1answer
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 ...
3
votes
1answer
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 ...
1
vote
1answer
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
3answers
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
1answer
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
2answers
1k 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 ...
5
votes
1answer
2k views

Server-side validation rule is not being found

I've added a custom field to com_content, and everything has been working wonderfully. I'm now trying to add some server side validation, and after following all the tutorials and examples I've been ...
5
votes
4answers
5k views

How to work with field type Checkboxes (not checkbox)

My component needs to save mulitple options, and I can't seem to get my head wrapped around how to do it. Referring to Checkboxes form field type, I'm not sure how Joomla is expecting to save the ...
3
votes
3answers
3k views

Filtering list of Users in User form field type

I've been unable to determine if/how the list of users can be filtered. The example below from User form field type, shows the filter in use, but I've been unable to come up with how to specify the ...
0
votes
1answer
512 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=...
4
votes
3answers
1k views

How to save data from 2 fields as a JSON string to 1 database table field?

I need help to store data in json format in my DB like {name:'1', name2:'2'}. So far I have this: model/form/category.xml: <fieldset> <field name="name" type="text" ...
3
votes
1answer
2k 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('...
3
votes
4answers
875 views

How to retrieve unique values before a parenthesis in JFormFieldList Filter query?

I have a JHtml custom filter populated by a JFormField extended class. It is added in the view with the following code: JHtmlSidebar::addFilter( '- Select Height -', 'filter_height', ...
1
vote
1answer
355 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
3answers
992 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> ...

1 2
3