CF User custom fields without coding
Hi
Simple question : is it possible ?
How to reload the custom fields (mobile no) of the current user on a CF without php coding and using only the CF field setup ?
1) I created a "mobile" field as user custom field.
2) I created a new CF form to ask for the mobile number when the user is registering on the site and sent an email with all its user data including mobile field.
3) I checked the user data and "mobile" is saved in the DB.
4) Now simple question, I want to reload the mobile field when the user come back to the site and show it on another CF form.
How should I perform this basic step : reloading the field that was saved...
All the examples that I found are using some php coding to reload this specific custom user data.
Is it not possible in CF to reload the user custom fields and to show the "mobile no" without any php coding in CF ?
Thanks in advance.
Vinamis
Hi
Simple question : is it possible ?
How to reload the custom fields (mobile no) of the current user on a CF without php coding and using only the CF field setup ?
1) I created a "mobile" field as user custom field.
2) I created a new CF form to ask for the mobile number when the user is registering on the site and sent an email with all its user data including mobile field.
3) I checked the user data and "mobile" is saved in the DB.
4) Now simple question, I want to reload the mobile field when the user come back to the site and show it on another CF form.
How should I perform this basic step : reloading the field that was saved...
All the examples that I found are using some php coding to reload this specific custom user data.
Is it not possible in CF to reload the user custom fields and to show the "mobile no" without any php coding in CF ?
Thanks in advance.
Vinamis
There's a Custom Fields action, have you had a look at that? Or used the read data action to get the field you want for the currently logged in user?
Tx healyhatman.
β
A look in mySQLDB was necessary to understand the design of Joomla custom fields.
β
In Page LOAD, I used the read data action, selecting First matching record of the #_fields_values DB table with conditions item_id = {user:id} and field_id = 2, the id of my mobile custom field.
I retrieve the field "value".
The value of my text field "Mobile" is {var:read_data3.model.value}
In Page SUBMIT action, I used Mobile {data:mobile} to show the Custom Mobile No in the email subject.
β
It works, but your comments are welcome. π§
β
A look in mySQLDB was necessary to understand the design of Joomla custom fields.
β
In Page LOAD, I used the read data action, selecting First matching record of the #_fields_values DB table with conditions item_id = {user:id} and field_id = 2, the id of my mobile custom field.
I retrieve the field "value".
The value of my text field "Mobile" is {var:read_data3.model.value}
In Page SUBMIT action, I used Mobile {data:mobile} to show the Custom Mobile No in the email subject.
β
It works, but your comments are welcome. π§
This topic is locked and no more replies can be posted.