- Posts: 9
- Thank you received: 0
[Solved] Hide custom field in registration details
- Maxime
- Offline
- New Member
-
Please Log in or Create an account to join the conversation.
- Maxime
- Offline
- New Member
-
- Posts: 9
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Baptiste
- Topic Author
- Offline
- Premium Member
-
- Posts: 157
- Thank you received: 4
Thank you!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Maxime
- Offline
- New Member
-
- Posts: 9
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
Tuan
Please Log in or Create an account to join the conversation.
- Maxime
- Offline
- New Member
-
- Posts: 9
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
Tuan
Please Log in or Create an account to join the conversation.
- Baptiste
- Topic Author
- Offline
- Premium Member
-
- Posts: 157
- Thank you received: 4
Tuan Pham Ngoc wrote: if (in_array($field->type, array('Message', 'Heading')))
{
continue;
}
If you want to exclude other field types, simply add it to the array
Tuan
Can you tell me if there is a way to make the same thing, but on one specific field (with name, or id...)
(for exemple : "if $field->name=", or "if $field->id=").
Thank you for your answer!
Baptiste
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
Without looking at the code again, I think you can try:
if ($field->name == 'name_of_the_field_you_want_to_hide')
{
continue;
}
That code should work
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.