Forums

Fill in a form with the data corresponding to the logged-in user

Merou63 14 May, 2017
Hello
I have a Chronoform form that must display the fields of a table.
Among these fields is the Joomla ID of the logged in user.
How do I, when I access this form, complete it with the data from my table that corresponds to the logged-in user?
Thank you in advance for your help
Marc
Merou63 16 May, 2017
Hello Bob,
Thank you very much for this element of answer.
However, until now I accessed my form from a Chronoconnectivity list and the form was displayed filled with the corresponding record of the list.
Now I want to access the form directly (without going through Chronoconnectivity) and display the data that corresponds to the logged in user but in fact I do not know how to fill in the form fields.
Sorry to ask basic questions and thank you again for your help.
Marc.
GreyHead 16 May, 2017
Hi Marc,

You need to get the User ID - as in the FAQ, and use that in the Conditions box of your DB Read action to load the record(s) for that user.

Bob
Merou63 16 May, 2017
Hi Bob,
It works fine now. Thank you again.
Marc
This topic is locked and no more replies can be posted.