I'm using V4.
I'm trying to get the current Joomla session user included in the email sent from the form. I've seen several references on these forums to using the JFactory GetUser statement to get this and include as a hidden form field value, but every code example has to do with editing the form code directly.
This form will be maintained by users who aren't HTML/PHP savvy, so I need to include this functionality in the form Wizard so it won't be overwritten.
I have tried using the PHP statements in the Email template, but received parse errors.
I have tried putting the JFactory statement in a custom code block on the load action, then using php echo for the form field default value, but I get parse errors again.
Is there any way I can accomplish this WITHOUT inserting code into the form's raw code window? Something that will not be overwritten when the form is edited with the Wizard Edit?
I'm trying to get the current Joomla session user included in the email sent from the form. I've seen several references on these forums to using the JFactory GetUser statement to get this and include as a hidden form field value, but every code example has to do with editing the form code directly.
This form will be maintained by users who aren't HTML/PHP savvy, so I need to include this functionality in the form Wizard so it won't be overwritten.
I have tried using the PHP statements in the Email template, but received parse errors.
I have tried putting the JFactory statement in a custom code block on the load action, then using php echo for the form field default value, but I get parse errors again.
Is there any way I can accomplish this WITHOUT inserting code into the form's raw code window? Something that will not be overwritten when the form is edited with the Wizard Edit?