Joomla Registration - Get id directly

Get the user ID after Joomla registration in ChronoForms.

Overview

When saving additional user data to a custom table after registration, the user ID from the Joomla users table is needed but not automatically available.
Use a Debugger action in your CF form to inspect the available data after registration, which will include the new user's ID for use in subsequent DB Save actions.

Answered
Fe FenFire 14 Aug, 2014
Hello there,
I've successfully altered Joomla Registration with Chronoform and added additional fields like address, telephone etc.
As this is needed for a special component, I use DB Save after Joomla registration and save the data to another table.
The component now doesn't recognize the user because the user_id (that should of course be the same as the id in the users table) is missing.
So before using DB Save, I have to get the id of the just registered user. Is this only possible by putting a DB Read inbeetween. And if this is the correct way, how do I get the specific id out of the users table and give it the name user_id, so that it could then be saved correcty.

Thanks in advance
Christian Schindler
Fe FenFire 14 Aug, 2014
That doesn't help, sorry!🙂
Gr GreyHead 15 Aug, 2014
Answer
Hi Christian,

Please see the Newly Registered section in this FAQ - it's a bit different in Cfv5 but adding a DeBugger action temporarily should let you see what you need.

Bob
Fe FenFire 15 Aug, 2014
Thanks a lot! That worked fine!
This topic is locked and no more replies can be posted.