ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com