Page 1 of 1

Autoresponder variables not processed

Posted: Wed Aug 31, 2022 2:12 pm
by grundman
Hello:

I have created a form and everything works flawlesly but the autoresponder. In the confirmation message I can access to $variables to confirm the data entered: for example $Name $City... But in the autoresponder the $Name appers as it was "$Name" and not with the content of the variable. Also I get the same results having checked the option Process variables in Success Page in Miscellaneous.

Have I forgotten something or is it a bug?

Thanks in adfvance

Re: Autoresponder variables not processed

Posted: Wed Aug 31, 2022 3:03 pm
by Pablo
Did you set the email format of the auto responder message to 'rich text'?

If yes, then what are your exact settings?
And what is the generated code?

Re: Autoresponder variables not processed

Posted: Wed Aug 31, 2022 3:17 pm
by grundman
No Pablo. The autorespond is in HTML format due in Rich Text I thought I can't access the variables

Re: Autoresponder variables not processed

Posted: Wed Aug 31, 2022 4:12 pm
by Pablo
What are your exact settings?
And what is the generated code?

Re: Autoresponder variables not processed

Posted: Wed Aug 31, 2022 4:35 pm
by grundman
Here is the test project

Re: Autoresponder variables not processed

Posted: Wed Aug 31, 2022 5:32 pm
by Pablo
Everything seems to be correct. ReplaceVariables is called for the autoresponder message:

Code: Select all

$autoresponder_message = ReplaceVariables($autoresponder_message);
I've also tried it with a simplified version of your form and that works for me.

I suggest to start with simple form, with only one or two fields. For example, name and email.
In that case, it's much easier to test whether it works.
Then, if you have the basics working you can add more fields.

Re: Autoresponder variables not processed

Posted: Thu Sep 01, 2022 2:32 pm
by grundman
Many, many thanks for the update Pablo.