Edit Profile Page using Chronoform

Dhananjay 04 Oct, 2013
Hi Bob

I'm using Chronoform for new user registration and that is working fine. In my registration form, I have few additional fields on top of the Joomla standard fields, and I'm saving all the information, to a chronoform table as well.

Now I have created a new chronoform, for users to edit/update their information.
I am using “Joomla user Create/Update” Action in “On Submit” Event and “DB Record loader” to load the Information user had filled earlier.(See Image below)

Everything is working fine, but I have 2 problems:

1.Password is loaded in encrypted form(see the password field in below image) and when I Update it shows:
“Passwords do NOT match.” In Debugger.

I am asking is there any other way to load earlier filled user date, in the form. If not can the password be loaded in Un-encrypted form or else password remains blank so that it functions like default Joomla “Edit Profile form”

2. Second problem is how to update the user information in both the tables simultaneously. That is default “jos_users” table and chronoform table

Hope my prolem is clear enough to readers

Any hints will be highly appreciated
Thanks in advance for the support you have always provided

Thanks
Dhananjay

[attachment=1]edit_profile.jpg[/attachment]

[attachment=0]cform.jpg[/attachment]
GreyHead 04 Oct, 2013
Hi Dhananjay,

Joomla! doesn't store a plain text version of the password so the only thing to do here is to exclude it from the form. I think that using a Custom Code action on the form with code like this in it will do that
<?php
$form->data['password'] = '';
?>


You can use several DB Save actions to save in different tables as long as the input names match the column names correctly.

But I'd generally avoid updating the #__users table as there maybe some pre-processing required. Better to use the Joomla! methods for that one.

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