Hide a value in email when checkbox is unchecked ?

CedricCQ 12 Feb, 2018
Hi !

When I uncheck the box "Recto verso", the value of "Impression verso" is sent in the email, it is possible to hide in email the value of this field when the box "Recto verso" is unchecked ?

Thank you🙂


When "Recto verso" is uncheckedHide a value in email when checkbox is unchecked ? image 1

When "Recto verso" is checked --> everything is ok in the email

Hide a value in email when checkbox is unchecked ? image 2


Hide a value in email when checkbox is unchecked ? image 3
GreyHead 12 Feb, 2018
1 Likes
Hi marc,

You can use a Custom Code action before the Email to check and change the value of the Impression Verso data element.

Bob
CedricCQ 12 Feb, 2018
Thank you for your answer, but I'm a little bit lost, sorry for the dumb question but where can I found this Custom Code ? How can I do that ?

Thanks,

Marc
CedricCQ 13 Feb, 2018
It is possible to use "Events" to simply disable "Include value in email" for my other element ?

Thank you.
Max_admin 13 Feb, 2018
Hi marc,

Unfortunately this feature is not available, you will need to use PHP code to build the email template and check if the checkbox value was available or not and add the text accordingly.

But I can try some change which may work for you, please disable the "Ghost" feature under the "advanced" tab and send me a message using the "Contact" page to get a patch file to test.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.