Pre-populating data to form controls from List

Hi Team,

I am new to Fabrik. I have created a list and corresponding Form elements. The form is displayed in an article. I am able to add data to list using the form controls. However, i want to pre-populate the data a user updated to the list once the user logs in to the page second time so that they can view the data they have updated and edit if required. I am using this form for the user to update the 'User Profile' details. Please help
 
This is done by using the 'usekey=whatever' and 'rowid=-1' query strings. So if your user element id called 'userid' ...

Code:
{fabrik view=form formid=123 usekey=userid rowid=-1}

The special rowid of -1 gets replaced with the logged on user ID. The "usekey=whatever" tells Fabrik to use that field name as the lookup for that record, instead of the usual Primary Key. If there isn't a record with that userid, we'll show a "new" form rather than an edit one.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top