How to get the status of the checkbox from the database

Twickbot 14 Jun, 2017
The database has an field "Active" with the values "0" and "1".
Accordingly, there is a checkbox in the form.
I can write the state of this checkbox in the database.
But, I did not find in the settings how to get the status of the checkbox from the database when opening the form page.
Found only the default setting of "Checked" or "Not checked".

How can I set the state of the checkbox based on the value in the database when opening the form page?
Twickbot 14 Jun, 2017
Thank you for trying to help, calculus00 - automated service, but your advice is not related to the question I asked.
Max_admin 14 Jun, 2017
Answer
1 Likes
Hi Twickbot,

You will need to use the form data provider for this, its under the "Display section" action settings, set this to the data set which has the checkbox data, if you are reading the values from the database then it should be something like this:

{var:read_data_name.model}

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 14 Jun, 2017
1 Likes
I may also add a setting to switch this at the next update!

Best regards,
Max
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.