Forums

Chronoform DB Loader url param

rajandear 22 Oct, 2013
Hi,

I have created custom user registration form using chronoform (reference CFV4_joomla_registration.pdf) in which the data is entered by site admin. Once the new user is created a mail will send to the user and using the joomla login user will be able to login to my site. In my userform using the DB Record Loader I am passing the cf_uid and Request Param as "token" as mentioned in the CFV4_db_record_loader.pdf tutorial. While login to the site how to pass/get the cf_uid token in login redirect? Without passing the param user form is not populating with data retrieved from database.Could you please help me to resolve this issue asap?

Regards
Rajan S
GreyHead 22 Oct, 2013
Hi Rajan,

If you want to identify the record by user then I would use the User ID as the identifier, not the long random string. I just posted another reply on this in this thread

Bob
rajandear 22 Oct, 2013
Hi Bob,

Thanks for your quick reply. I tried the logic which you have mentioned in the other post. My issue is initially as the new user is created by admin "cf_user_id" is getting updated with admin userid. But in the joomla user manager section id is updating properly.

I have couple more queries.

#1. How to make a textbox readonly (disabled)?
#2. Based on database value how to set the default value for radiobutton and dropdown? For example, I have a "Gender" radiobutton and while retrieving the data radiobutton is not getting selected. Same with the dropdown control.
#3. Can't we set other field as primarykey other than cf_id?

Regards
Rajan S
GreyHead 27 Oct, 2013
Hi Rajan,

ChronoForms automatically adds the current user ID into the cf_user_id column; you'd need to use a second query to update it if you need some other value (like the newly created user id); or use a different column to record the new user id.

1. Please see this FAQ about readonly settings. Or use a Custom Element element.

2. The Radio buttons should auto publish. Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.

3. Yes, as long as it has a unique integer value.

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