Accessing new user id after Save User action

Access the new user ID after a Save User action in ChronoForms.

Overview

The user ID is not available in the same data location as in previous CF versions.
Check the form debug output to find the ID under the specific action's variable.

Answered
ChronoForms v7
nl nlheath 22 Dec, 2025

How can I get the value of the user ID after succesfully adding a new user with the Save User action in a Chronoforms V7 form?

In CF5 I ran a php custom code with this statement:

$form->data ['new_user_id'] = $form->data['_PLUGINS_']['joomla_registration']['id'];

In CF7 my custom code contains this statement:

$this->data ['new_user_id'] = $this->data['_PLUGINS_']['joomla_registration']['id'];

but the value of new_user_id is null.

Max_admin Max_admin 22 Dec, 2025
Answer

You should find the id in the debug of the form, it will be under the action's var:

$this->get("action_name")["id"]
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nl nlheath 23 Dec, 2025

Works perfectly! Thanks, Max.

Max_admin Max_admin 24 Dec, 2025

No problem :)

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