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.
Forums
How to read a custom field in v7
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
I already set the read data action and set the #__fields table, but then I don't know how to call it to complete it for the user who is currently in session. I attach my form
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
Hello Max, I just sent you the message, as you tell me, check it when you can. I will be very grateful to you
AMax, still waiting for the response, just as I told you, I sent you the message through the contact on the page😶
this is how I made your Save Data:
then you need to use {var:read_data50.Model50.value} where you want to get the value
Using v8 would have been better
I put it in, but the data that should be shown is not displayed.
did you check the debug results ?
Hello Maxi, Here is the screenshot
but I want you to read it in this field
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
Hello Max.
Yes, the read data action is on the same page, here I attach the video, maybe I am making a mistake
Please add to the field label the var string: {var:read_data50.Model50.value}, does it work there ?
Excuse my ignorance Max... but I don't understand :(
use that shortcode in your field label to find if it will return the value there or not
Sorry max, But isn't that what I'm doing in the video? :/
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.
please try to place the shortcode inside this box:
does it show anything on the frontend ?
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
picture 2
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}
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 :(
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