Questions tagged [jform]
Form Class for the Joomla Platform.
18
questions
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 ...
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 ...
5
votes
1
answer
3k
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 ...
2
votes
1
answer
2k
views
Loading the options of a select form field via jQuery Ajax
Basically I am trying to load a front-end form select field via jQuery AJAX.
The XML form field is
<field name="student_ids"
type="list"
required="true"
label="Select Students"
multiple="...
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:
{...
3
votes
1
answer
1k
views
How to select predefined options in an custom form list-field?
I'm trying to pre-select several options in a custom form field. I created a new JFormField which extends JFormFieldList and gets its values from my database. This is my current code:
protected ...
3
votes
2
answers
615
views
Adding Custom Fields to Article Component [Not in attribs field]
I am trying to save some additional fields into the Article Content and there has been a few questions like this relating to this issue but all of the solutions seem to point to saving the extra field ...
3
votes
4
answers
3k
views
JForm in modal window
I create a modal window when clicking on a custom toolbar button, like I was explained here and now the doubt I have is on how to create the JForm for this modal window, because they should submit ...
3
votes
1
answer
90
views
Joomla - PHP+$this wrapped in Javascript.
Here is script I have. I'm trying to load it after page display. I'm trying to execute PHP code from javascript. What I need is to get email address of user who submitted the form at the textbox ...
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
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 ...
3
votes
2
answers
671
views
Passing Arguments for custom field
I need a custom field which has to select the database with some conditions. When customer A logged in this field has to select records belong to customer A only.
The custom field is as below
...
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('...
3
votes
3
answers
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 ...
2
votes
2
answers
1k
views
Custom 'dynamic' form field creation
I tried to look around, but didn't exactly found what I was looking for. Joomla have documentation about how to create custom form fields. That was useful, but what I need is (I guess simple..?).
I ...
2
votes
1
answer
304
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
1
answer
2k
views
Manually render filter form fields in layout
I am using the searchtools filters in the front end of a custom component.
So I am displaying the fields in my template :
<?php echo JLayoutHelper::render('joomla.searchtools.default', array('...
1
vote
1
answer
783
views
How to submit JForm form based on custom dropdown list value change
I'm working on a custom Joomla module. I have a JForm that contains multiple custom dropdown lists based on JFormFieldList. The form should be submitted when a value is selected from one of the custom ...