Hidden fields

Record user ID and submission date without visible form fields.

Overview

The issue arises from attempting to use hidden fields to capture user ID and date, which is unnecessary in CF.
Use the {user:id} and {date:} placeholders directly in the Save Data or Email actions to automatically include these values with the form submission.

Answered
ChronoForms v8
kr kraadde 21 Jul, 2025

Max,

 I need to record the id of the user and the date of creation of the form submission.I tried using a hidden field since I do not want to have an additional visible form field. I could not succede.What is your suggestion?

Thanks and regards.

Adriano

Max_admin Max_admin 22 Jul, 2025
Answer

Hi Adriano

Where do you need to record this ?

You can use {user:id} and {date:} in either the Save Data action ( in the Modify Data Source behavior) or the Email action Body to get those values.

You do not need to have this in a hidden field first

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kr kraadde 23 Jul, 2025

i need these record to identify the user and the date of submission of the form together with all the other entries.

Max_admin Max_admin 24 Jul, 2025

No problem, you can do it the way I recommended and it will get saved, but you do not need them in "hidden fields"

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply