Forums

[SOLVED] Get newly-created Joomla User ID

momentis 13 Jan, 2014
I am using the "Joomla User Create/Update" action in an On Submit event. After the Joomla user is created, I would like to capture the new User ID created in order to update another table.

I am using this code to try to populate a form field with the new ID, but it is not working:

<?php
$newuser = $form->data['_PLUGINS_']['joomla_registration']['id'];
$form->data['reg']['advreg_login_user_id'] = $newuser;
?>


Any idea what I am missing?

Chronoforms: Latest v4 Version
Joomla: 3.2.1

Rick
momentis 13 Jan, 2014
Nevermind. I should have been using the Joomla User Registration action.

😶 😶 😶

Rick
This topic is locked and no more replies can be posted.