Buy Now
Sign in

How to get checkbox value from DB?

Twickbot , July 31 2017
T
Twickbot 33
July 31 2017 #371049
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.
admin 26.0
August 23 2017 #371581
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
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
T
Twickbot 33
August 23 2017 #371584
Thank you very much for your answer. When about wait for an update?
admin 26.0
August 24 2017 #371646
Hi Twickbot,

Hopefully this weekend!

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
T
Twickbot 33
November 03 2017 #373330
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?
admin 26.0
November 03 2017 #373337
Hi Twickbot,

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

Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
C
CSDweb 25
December 11 2017 #374019
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?
admin 26.0
December 27 2017 #374276
Hi CSDweb,

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

Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!