How to read a custom field in v7

How to read a Joomla custom field value into a ChronoForms v7 form field.

Overview

The issue occurs when the Read Data action is configured but the correct placeholder is not used to display the retrieved value in the form.
Ensure the Read Data action name matches the debug output and use the exact placeholder, such as {var:read_data_50.Model50.value}, in the target form field's properties to populate it with the custom field data.

Answered
ChronoForms v7
da darkarturo 07 Nov, 2024

Hello, I am using Joomla custom field, I have added a field called Company and well, I want that field to be read by a Company field that I have in a v7 form.

Max_admin Max_admin 08 Nov, 2024
Answer

You need to use a Read Data action and reference the correct field in the Joomla custom fields table #__fields_values, you can find the field_id in the custom fields manager or the joomla #__fields table

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin Max_admin 09 Nov, 2024

I need a screenshot of your #__fields and #__fields_values tables values, just some part of it, if you can not post this here then you may send me a message using the contact page

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
da darkarturo 09 Nov, 2024

Hello Max, I just sent you the message, as you tell me, check it when you can. I will be very grateful to you

da darkarturo 11 Nov, 2024

AMax, still waiting for the response, just as I told you, I sent you the message through the contact on the page😶

Max_admin Max_admin 12 Nov, 2024

this is how I made your Save Data:

How to read a custom field in v7 image 1

then you need to use {var:read_data50.Model50.value} where you want to get the value

Using v8 would have been better

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
da darkarturo 13 Nov, 2024

I put it in, but the data that should be shown is not displayed.

How to read a custom field in v7 image 2

Max_admin Max_admin 13 Nov, 2024

did you check the debug results ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
da darkarturo 14 Nov, 2024

Hello Maxi, Here is the screenshot

How to read a custom field in v7 image 3

but I want you to read it in this field

How to read a custom field in v7 image 4

How to read a custom field in v7 image 5

Max_admin Max_admin 14 Nov, 2024

your Read Data action is on the same page of the "Text" field ? it should be!

And does your form URL or any other action set the value of the field "EMPRESA" in another way ? because that would overwrite the value

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
da darkarturo 14 Nov, 2024

Hello Max.

Yes, the read data action is on the same page, here I attach the video, maybe I am making a mistake

VIDEO FORM

Max_admin Max_admin 14 Nov, 2024

Please add to the field label the var string: {var:read_data50.Model50.value}, does it work there ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
da darkarturo 14 Nov, 2024

Excuse my ignorance Max... but I don't understand :(

Max_admin Max_admin 14 Nov, 2024

use that shortcode in your field label to find if it will return the value there or not

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
da darkarturo 14 Nov, 2024

Sorry max, But isn't that what I'm doing in the video? :/

da darkarturo 14 Nov, 2024

Well, I have tried, but perhaps I am a little ignorant and I am not entering something correctly. Anyway, a few days ago I sent you the link and the accesses, maybe if you have time, you can check it yourself :/. Good morning friend and thank you for the great effort you make to help all the users of this forum, I appreciate it very much.

Max_admin Max_admin 14 Nov, 2024

please try to place the shortcode inside this box:

How to read a custom field in v7 image 6

does it show anything on the frontend ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
da darkarturo 14 Nov, 2024

No, it doesn't show anything, but actually I need it to show the value of the EMPRESA field of the user who is currently logged in

picture 1

How to read a custom field in v7 image 7

picture 2

How to read a custom field in v7 image 8

Max_admin Max_admin 15 Nov, 2024

we did not pay attention to the name of the action, it should be read_data_50, it should match the debug, so this should work: {var:read_data_50.Model50.value}

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
da darkarturo 19 Nov, 2024

It matches the debugging, but I can't get it to read it in the text field... no matter how much I do what you tell me :(

Max_admin Max_admin 19 Nov, 2024

please try it in the label field, does it work ?

Also the latest v8.0.27 has a v7 import, you may try to import your form and check if this works there, you will still need to redo some configuration

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.