Forums

How to get checkbox value from DB?

Twickbot 31 Jul, 2017
I created page for editing values in DB.
On this page, I have a checkbox, a text field, and a text area.

I get data from the DB and they are displayed correct in text boxes.
But getting the "1" for the checkbox does not make it checked.
What can I do to get "1" from the database for the checkbox, it would be checked?

Thank you in advance for your response.

P.S. In a similar situation in Chronoforms6 everything works correctly and the checkbox becomes checked when getting 1 from the DB.
Max_admin 23 Aug, 2017
Hi Twickbot,

The next Connectivity/forms update has enabled the Chronoforms basic fields in Connectivity, this way you can have the same feature in your connection, each field will have its own view in Connectivity though.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Twickbot 23 Aug, 2017
Thank you very much for your answer. When about wait for an update?
Max_admin 24 Aug, 2017
Hi Twickbot,

Hopefully this weekend!

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Twickbot 03 Nov, 2017
I raise this topic.
Is there any way to get the checked checkbox on the page if its value in the database is "1" and unchecked, if the value in the database is "0"?
In cronoforms6 it turns out without problems. In chronoconnectivity6 I can not do it.
How to do it?
Max_admin 03 Nov, 2017
Hi Twickbot,

Did you try to call a checkbox view in your Connectivity form view ?

Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
CSDweb 11 Dec, 2017
HI, I'm new to CCv6. I'm using CC ver 6.06 with a checkbox and a radio (for testing I have each inside and outside of a form) that I can't get to be checked or to save correctly when checked. I can view the data ({var:read_club.Club.state}) and it comes in correctly as either a 1 or 0 based upon what's stored in the DB. What do I need to do to have the checkbox checked/unchecked and/or set the radio to yes/no based upon the state status retrieved from the DB?
Max_admin 27 Dec, 2017
Hi CSDweb,

Please check my latest post here:
http://www.chronoengine.com/forums/posts/t104781/p374275#p374275

Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.