Questions tagged [jform]

Form Class for the Joomla Platform.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

How can I get form post data when Save, Save and Close or Save and New button is used?

I need to get the values of fields when the form is saved by any of the save buttons. So far I only get an empty array. Working with a custom field for Mosets Tree component. I used what I expected ...
1
vote
0answers
48 views

Variables in XML form definition

I'm creating a form using the Joomla XML form definition, and I want to create a range of integer values a user can select from. The number/integer field is fine for this use-- but I need to allow the ...
1
vote
1answer
110 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 ...
0
votes
0answers
11 views

JForm bind recursion error?

I'm updating a Joomla 3.x component for Joomla 4, and my admin forms are showing a recursive error: // etc until it hits a limit of 256 236 Joomla\CMS\Form\Form->bindLevel() JROOT/libraries/...
0
votes
1answer
48 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
0answers
734 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 = ...