How to work with "hidden custom fields" ?
- Andrea
-
Topic Author
- Offline
- Elite Member
-
Less
More
7 years 1 month ago #113866
by Andrea
Visit my page! www.elementotango.it
How to work with "hidden custom fields" ? was created by Andrea
Hi Tuan, all,
I need to work with a custom field which needs to be INVISIBILE in the forms (single and group) but needs to be VISIBILE in the email that is sent to the participants, as a confirmation.
How can I do that ? I tried using "Hidden" custom field, but the field (which is simply a text) is not appering in the form (good) but it also does not appear on the emails (bad).
Thanks!
AG
I need to work with a custom field which needs to be INVISIBILE in the forms (single and group) but needs to be VISIBILE in the email that is sent to the participants, as a confirmation.
How can I do that ? I tried using "Hidden" custom field, but the field (which is simply a text) is not appering in the form (good) but it also does not appear on the emails (bad).
Thanks!
AG
Visit my page! www.elementotango.it
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 1 month ago #113872
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to work with "hidden custom fields" ?
Hi Andrea
I don't remember exactly the reason but in case you want to show value of hidden custom field in email, you would have to customize the code. Look at administrator/components/com_eventbooking/libraries/rad/form/field/hidden.php, find this code and remove it:
After that, the value of that hidden field should be displayed
Regards,
Tuan
I don't remember exactly the reason but in case you want to show value of hidden custom field in email, you would have to customize the code. Look at administrator/components/com_eventbooking/libraries/rad/form/field/hidden.php, find this code and remove it:
Code:
/**
* Get output used for displaying on email and the detail page
*
* @see RADFormField::getOutput()
*/
public function getOutput($tableLess = true, $bootstrapHelper = null)
{
return '';
}
After that, the value of that hidden field should be displayed
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Andrea
-
Topic Author
- Offline
- Elite Member
-
7 years 1 month ago #113911
by Andrea
Visit my page! www.elementotango.it
Replied by Andrea on topic How to work with "hidden custom fields" ?
Hello Tuan, thank-you. Just to be sure: by removing the code above, do I obtain the following:
- The hidden field stays hidden the form
- The hidden fied gets displayed in the email
Is it correct ?
Thanks
Andrea
- The hidden field stays hidden the form
- The hidden fied gets displayed in the email
Is it correct ?
Thanks
Andrea
Visit my page! www.elementotango.it
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 1 month ago #113927
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to work with "hidden custom fields" ?
Hi Andrea
Yes, that's correct
Regards,
Tuan
Yes, that's correct
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
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.
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.