Skip to content

What is the recommended way to create a CustomField for Joomla 5 with a custom/own FormField? #42246

Closed Answered by Fedik
astridx asked this question in Q&A
Discussion options

You must be logged in to vote

For namespaced field you need to use FormHelper::addFieldPrefix() to register your namespace in the form, instead of FormHelper::addFieldPath().
Example FormHelper::addFieldPrefix('Foo\Bar') for field Foo\Bar\BeerField

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by astridx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants