How to work with "hidden custom fields" ?

  • Andrea
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 1 month ago #113866 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

Visit my page! www.elementotango.it

Please Log in or Create an account to join the conversation.

More
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:
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
  • Elite Member
More
7 years 1 month ago #113911 by Andrea
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

Visit my page! www.elementotango.it

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc