Forums

Chronoform 8, Get Joomla User data, Name and email address into a form - Joomla 4

RSM4849 07 Feb, 2024
I am using Chronoforms 8 having come from chronoform 5 The component is great once you get to know how to implement the features.

Hi, I have created a form where the compiler can enter their name and email address. They need to be logged in to see the form
I'm pretty sure there is a way of accessing joomla 4 user information and displaying it in the form, but I cannot find and chronoform 8 tutorials? Help would be appreciated. Thanks
Max_admin 07 Feb, 2024
Answer
Hi

Just use {user:name} or {user:email} where you want to get this information
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
RSM4849 07 Feb, 2024
Thank Max for the clues. Do you have a method of tipping you for advise?

For completeness, an HTML field from the 'Contents' list has to be dragged into the form where you want the user information to appear and I entered the following into the HTML field for Joomla Name, Username, email and ID. : -

<p><strong>These are your credentials automatically loaded into the form: -</strong></p>
<p><strong>Your Name:         {user:name}</strong></p>
<p><strong>Your Username: {user:username} </strong></p>
<p><strong>Your email:         {user:email}</strong></p>
<p><strong>Your ID:               {user:id}</strong></p>
webbusteruk 10 Feb, 2024
https://www.chronoengine.com/faqs/chronoforms/chronoforms6/variable-shortcodes

Although these shortcodes are from CF6, most of it should still work. Eg for the user data, you get it from {user:}
You need to login to be able to post a reply.