Forums

Display field Communicty Builder

kupers.rick730 15 Jan, 2025

In a form I retrieve the information of users (name and email address). This works by setting a Default Value ({user:email}). With Communicty Builder we register even more information, for example the bank account number. This has the name in CB {cb_iban}. However, I do not get this displayed in a similar way, if I enter Default Value ({cb_iban}) it remains blank.What am I doing wrong?

In addition, I would like the data to only be displayed and not be able to be modified. A kind of read-only. Is that also possible?

Max_admin 15 Jan, 2025
Answer

for the "readonly" you can use the "HTML attributes" behavior and add:

readonly=readonly

for the Community Builder fields you need to read the values of the current logged in user from the community builder database table using a Read Data action, you can ask the CB team how to read the values from the database

or if CB sets these values in the user's session then you can get them using: {user:cb_iban}

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kupers.rick730 16 Jan, 2025

Thanks for your help. I managed to make the fields read-only.However, I can't find any information on how to retrieve the correct information from CB using the Read data option. I can ask the question there, but the functionality is in Chronoforms. It's actually very simple, I want to automatically put a piece of data from CB that is recorded there in the form in the same way, just like the name.

Max_admin 16 Jan, 2025

if CB has the values in the session then just using {user:cb_iban} will be enough, did you try that ?

if not then the Read Data config depends on how CB stores the data, I do not know how CB stores the data, but they will know, so based on their instructions you can configure the Read Data

you may also check the database tables yourself, find which table has the user data and let me know, and if possible post a screenshot

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.