-
What is the recommended way to create a CustomField for Joomla 5 with a custom/own FormField? My attempts so far have ended in code that does not load the form field. What am I doing wrong or how should I do this? |
Beta Was this translation helpful? Give feedback.
Answered by
Fedik
Oct 29, 2023
Replies: 1 comment
-
For namespaced field you need to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
astridx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For namespaced field you need to use
FormHelper::addFieldPrefix()
to register your namespace in the form, instead ofFormHelper::addFieldPath()
.Example
FormHelper::addFieldPrefix('Foo\Bar')
for fieldFoo\Bar\BeerField