Here is what I didFor onAfterEmailUserForm you'd just be using an HTML code action and output your checkboxes by setting Mode to Return under the Output tab.
For onBeforeEmailUser you need to set Variable 7 as a Reference Variable under Parameters then use a PHP code action to modify that variable using $variables to add your checkbox value to the message being emailed.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thank you! Hope you have a wonderful new year as well!First of all Happy New Year and all the best to you and to all the Joomlapolis team!
Correct, you need to provide the full HTML structure of the field you want rendered. So if that's a select field then you need to provide the select fields HTML.Just for me to understand better. The HTML Auto Action you have provided for onAfterEmailUserForm creates a select field to the form and does not "call" an already existing one using cb_substitution, correct? According to this I have created the following
It worked fine in my tests. What are you receiving in the email? Is it not adding your custom field to the email message? It should be right after the user supplied message, which you can of course change it to be before or add line breaks in that code auto action.This works fine and I get what I want but when I complete the form I do not get the expected result in the received email when using the following in the PHP in onBeforeEmailUser
Please Log in or Create an account to join the conversation.
I must be doing something wrong then... Here is what I get in my email.It worked fine in my tests. What are you receiving in the email? Is it not adding your custom field to the email message? It should be right after the user supplied message, which you can of course change it to be before or add line breaks in that code auto action.
Global
Triggers: onBeforeEmailUser
Type: Code
User: Automatic
Access: Everybody
Action
Method: PHP
Code:
$variables = '[var7] [cb:parse function="clean" method="string"][post_emailoptions][/cb:parse]';
Parameters
Format Functions: Yes
References: Variable 7
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.