show the form with record content directly (SOLVED)

navajofra 05 Apr, 2010
Is it posible to show the chrono form with a record content directly instead of the table which i have created by CC in the Connection View Settings?

The background is that each user has only one record in the database table i.e. the user table.

At the moment the user has to click: View User Details and then in a second step he has to click Edit to see the original form which is related to Chrono Forms.

I would like to skip the first step. Is it possible?
GreyHead 05 Apr, 2010
Hi navajofra,

Yes use a ChronoForm with the Profile plugin - that's intended for use with single records.

Bob
navajofra 05 Apr, 2010
I have already tried to use the profile plugin. But all tutorials I have read in the internet and forums are not understandable for me. For newbies as me they don´t say clear how to configure it exactly. Maybe I have not enough skills of the english language.

I dont know what it means and what I have to put in:
'Request' parameter name
Default Request Parameter value

Also I dont know how to create the link to the form I want to display related on the field cf_user_id. I didn´t find any tutorial.
GreyHead 05 Apr, 2010
Hi navajofra,

Here's the Help tab contents for the plugin:

The plugin allows you to read values from any table in the database and include them in your form.
It was originally designed to allow access to the jos_users table to create member profiles but it is capable of much more.
To use the plugin effectively you will need to call the form from a link on your site. This could be from - for example a list of users, or topics, or events where you have some related information in a database table.

* Choose the table you want to use in the first drop-down e.g. jos_users to get a user's name and email.
* Select a field or column name from the table in the second drop down. This should be a field that will uniquely identify the record you want to use e.g. 'id' or 'username' for the jos_user table. NB This drop-down will not appear until you select a table in the first drop-down.
* In the Target field name box put the name of the field you will use to identify the record e.g. user_id. You will need to add this field to a url calling the form e.g. . . . &chronoformname=my_form&user_id=99
* You can then use information from this record in your form by putting {column_name} where you want it to appear e.g. {name} for a users name from the jos_users table.
* Once this plugin is configured you must enable it in the Form 'Plugins' tab.

navajofra 05 Apr, 2010
Thanks greyHead. I have read the explanation several times. But I still cannot understand it.
for instance how can I show the cf_user_id of my record in the link instead of the 99.
The explanation is too poor in my opinion for beginners.
navajofra 05 Apr, 2010
Solved!
I have to switch edit to 'on' in the page plugin. Then all datas get laoaded into the form fields.
If you switch it to 'off' then you have to create a html chronoform as described already

label name1: {field1}
label name2: {field2}
.
.
GreyHead 06 Apr, 2010
Hi navajofra,

Well done.

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