close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Handling checkbox on the detail and update pages of webassist

Thread began 10/01/2009 7:43 am by neil.batchelor254136 | Last modified 10/06/2009 6:54 pm by neil.batchelor254136 | 1214 views | 3 replies

Eric Mittman

I will do my best to explain it here for you.

Checkboxes will contain the value of whatever you specify in the value attribute, but only if the box is checked. So if you have the value of the checkbox be 1 that form element will have a value of 1 if it is checked.

If the '1' is the value from the checkbox you can get it to say yes if update the value of the checkbox to be yes on the insert and update pages.

You can also make this change in the code directly using a ternary expression like this:

<?php echo ($row_YourRS['the column'] == '1')?'Yes':'No' ?>

This is equivalent to saying if the column from the recordset is equal to 1 then write yes, otherwise write no.

I edited this post to add in the part about showing the default value. To do this select the checkbox then in the properties panel click on the dynamic (lightning bolt) button. In here you can specify to have the box checked if a certain value is present.

If this is not enough info to help you get it worked out please post back and include some more details about how far you have gotten in these steps and what the result is. It may also be helpful to post back with the pages in a zip archive so that they can be examined.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...