Autoresponder variables not processed

Issues related to forms.
Post Reply
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Autoresponder variables not processed

Post 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
User avatar
Pablo
 
Posts: 23234
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Autoresponder variables not processed

Post 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?
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Re: Autoresponder variables not processed

Post by grundman »

No Pablo. The autorespond is in HTML format due in Rich Text I thought I can't access the variables
User avatar
Pablo
 
Posts: 23234
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Autoresponder variables not processed

Post by Pablo »

What are your exact settings?
And what is the generated code?
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Re: Autoresponder variables not processed

Post by grundman »

Here is the test project
Last edited by grundman on Thu Sep 01, 2022 12:46 pm, edited 1 time in total.
User avatar
Pablo
 
Posts: 23234
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Autoresponder variables not processed

Post 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.
grundman
 
 
Posts: 22
Joined: Mon May 14, 2018 11:09 am

Re: Autoresponder variables not processed

Post by grundman »

Many, many thanks for the update Pablo.
Post Reply