Developer forum

Forum » CMS - Standard features » Template tags website owner mail

Template tags website owner mail

Caro De Weze
Reply

Hi,

I have made a form with forms for editors and in the settings I have set that the website owner receives an email when someone fills in his/her details. This works perfectly, but when I want to add the person's details to this email with, for example {{UserManagement:User.FirstName}}, the name does not appear. I have a field first name with the automatic value FirstName. 

I want the website owner to be able to immediately see what data has been entered. Is there another setting I forgot to make the template tags work?

Caro


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Caro

{{UserManagement:User.FirstName}} will only work for logged in users. Are your users logged in when submitting the form, or is it an anonymous user?

But you can use the tag "Field.{fieldSystemName}.Value" - i.e. if the name field has the system name "name" you can use "Field.name.Value" to get hold of the information.

 
Caro De Weze
Reply

Hi Nicolai,

They are anonymous users, so then it becomes {{Field.Firstname.Value}}, but unfortunately that doesn't work either. The System name is really 'Firstname'.

Caro

Screenshot_2023-10-25_at_07.51.02.png
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You write template tag, but format is {{}}, so there might be some confusion of different concepts.

Can you show where and how you use this information? Is it in the text editor or the template?

 
Caro De Weze
Reply

Hi Nicolai,

I have set the form to send email to the website owner, the template here is a page. At the page I used a text field in the visual editor with {{Field.Firstname.Value}}.

Caro

 
Caro De Weze
Reply

Hi Nicolai,

Can you please still help me with this? I still haven't found the solution.

Caro

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I cannot see enough of your setup to do anything further. As I asked previously we need to see the complete setup with screenshots of where you have setup what. It might be something that is not supported.

Alternatively feel free to contact care.

BR Nicolai

 
Caro Deweze
Reply

Hi Nicolai,

My apologies, I thought you had enough information. Here are screenshots of the setup.

Caro

 

You must be logged in to post in the forum