I can't insert matching instruction in value field. Have field empty or with some html taags. When I write to: {user:id} it shows me number of user id - is ok, when try with function empty - it's ok - return 1. I tryed for many options and don't have idea how use data from read data query. Please help!
Hi pachf11,
First, the read data must be BEFORE the "display section", then you can use a "Debugger" to display what data is available for usage, the data of any action is available under {var:action_name}, but the exact path is visible in the debug output.
Please check the manual or post the debug results and I can explain how to find the path.
Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Pawel,
In order to get the first_name from the data you need to use the following:
{var:read_data9.0.CH_MODEL_USER.first_name}
But if you are planning to load ONE record only then you better set the "Select type" in the "Read data" to "First matching", you can then use:
{var:read_data9.CH_MODEL_USER.first_name}
Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Great! Now it's function OK. Thank You very much!
Best Regards
Paweł
Hi vividal,
I'm not clear where these things are happening. Is the read data after the first part of the form (with the drop down) is submitted?
Bob
Sorry for the confusion. The form has 5 fields (fields 3-5 work fine). Field1 (filmuser_id) is a drop down where I select the a value. It has a reload action on change for element id jmid1. Field 2 (jmid1) has a reload event GetJMID which is where the debug is displayed after loading the value based on the selection from field1.
Hi,
The syntax of the shortcode is correct, but the read data should be inside the same event of the "reload" and BEFORE the "custom code" action used to render the field.
You may also try to call the shortcode directly from the "custom code" {var:read_data10.JMUSERID.jmid}
Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Oh, it works now.
Earlear, i tried to use this command into wrong place (in text field of form, but display section function is into success event of read data function) it is the reason could't output the data as i think
Sorted that out using this thread:
http://www.chronoengine.com/forums/posts/t107640/populate-field-value-after-selecting-value-in-dropdown?keywords=dynamically%20populate%20text%20field
- I had an php action code missing.
that is a litle bit weird though🙂 - is this the correct way of doing this, Max?
Thanks!