Read data action

Set a Joomla table field as a default value in a CF text field.

Overview

The Read Data action successfully loads the record but the value is not being assigned to the form field.
Use the variable placeholder {var:read-data-name.column} in the text field's default value property to populate it with the data.

Answered
ChronoForms v8
ZP ZPV_Joomlaforms 15 Jul, 2024

I have a question about the function Read Data Action.

How can I read data from a Joomla table and use the field as default value in a text field?

I use two Behaviors in the Designer Load Tab

  • Fields: the fields of a Joomla table
  • Where statement: idn={data.quote:idn}

Chronoforms finds the Joomla record based on a URL parameter idn, but how can I use the Joomla field value in a Chronoforms fiels?

Thanks in advance for a solution!

Max_admin Max_admin 20 Jul, 2024
Answer

The data loaded and it's path under the vars are shown in the form debug, you can use the {var:read-data-name.column} to get the value you need

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.