I'm working for FE component with form to make ability to user set some values to filter data from DB (ex: select, text). After user make submit these fields need to show values user have selected before submit.

I have created custom fields and form XML files. I realized that custom fields in same JForm that extends JFormField remains with same name that is set in myfield.php but custom fields that extends JFormFieldList become with jform array part (ex. jform[myfield]) and so they appear in the POST as part of jfrom array.

It there some workaround to make same naming (with or w/o jform) for all custom fields (JFormField, JFormFieldList, ...) and read them all using JInput as single fields or as part of array?

Thank you!

2 Answers 2


Well, you can go dum and override your custom_field getInput() function so your field name will be without jfrom part, but this is not good. What you need is just make sure you use $this->value inside your custom_field.php as it cares value that user had sent.

if it is not - it must be something wrong with populateState() and getForm() inside your model.php


Perhaps you should have a look on DPFields which can easily be integrated into your component. It does all the work for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.