I'm writing a form with chronoformsv5.
I need to send a CC email to the current user email, so I did:
hidden field with this value
Field Name = current_user_email Field ID = current_user_email Field Value = <?php echo $current_user_email; ?>on OnLoad action a create a new action with this code
<?php $user = JFactory::getUser(); $current_user_email = $user->email; //echo $current_user_email; ?>onSubmit action I create use "email Action" with this value
Dynamic To = current_user_email Reply To Email = [email protected]
Please see this FAQ. You do not need to get this information until after the form is submitted.