Hi there,I created a form to let registred joomla users on my website save personal information into a DB-tabel. That went pretty good. I works fine.But now I want to use the same form to let the user edit there own information (of course after they are logged in).How can I
Thank you for your help !
- let the user see its information already filled in into the form?
- make sure the user is editing previously provide information (so he is overwriting earlier content without entering a new record in de DB table)?
Thank you for your help !
Hi thewelt,
You can use a Data read action to check if there is any saved data with the current user ID and load that into the form data.
Bob
You can use a Data read action to check if there is any saved data with the current user ID and load that into the form data.
Bob
OK thank you Bob.
That worked but when "the user" tries to update it's data a new entry in the table is made instead of the previous data is updated.
When I use the update option in safe data action, every users udates the same entry.
When I use the insert optrion, every time a new line is inserted.
When I use the auto detect option, every time a new line is inserted.
What am I doing wrong?
cheers,
Bart Weltens
That worked but when "the user" tries to update it's data a new entry in the table is made instead of the previous data is updated.
When I use the update option in safe data action, every users udates the same entry.
When I use the insert optrion, every time a new line is inserted.
When I use the auto detect option, every time a new line is inserted.
What am I doing wrong?
cheers,
Bart Weltens
You need to add the user id to the where conditions of the update action.
So should be something like
user_id:{user:id}
depending on how you're storing the user id in your table.
So should be something like
user_id:{user:id}
depending on how you're storing the user id in your table.
This topic is locked and no more replies can be posted.