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

How to display logged-in Joomla user data in a ChronoForms 8 form.

Overview

The issue is not knowing how to automatically populate form fields with the logged-in user's information like name and email.
Use CF shortcodes such as {user:name} and {user:email} within an HTML content element placed in the form.

Answered
ChronoForms v8
RS 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 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.
RS 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>
we 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:}
This topic is locked and no more replies can be posted.