Page 1 of 1

Email Templates

Posted: Fri Jun 16, 2023 12:42 pm
by ricklincs
I have added the the below email template:

I then added the below php code to the Custom Code after save in Form Properties :

When I save the record a popup saying Unknown email template! appears! I have checked zzzzsys_email_template and the email template exists.

Any ideas?
php after save code.PNG

Re: Email Templates

Posted: Fri Jun 16, 2023 12:48 pm
by kev1n
Try passing the language (in your case blank) and the group code too:

Code: Select all

nuGetEmailTemplateData("example_template", '','TEST');

Re: Email Templates

Posted: Fri Jun 16, 2023 12:56 pm
by ricklincs
Brill thanks Kev1n, works a treat.