September 30, 200223 yr Been reading the CDML reference guide as well as posts here. I am still a little lost on checkboxes. What I was trying to do was include a checkbox in my form layout on my web page. The checkbox on my filemaker layout is a simple "Yes" checkbox. I want the checkbox on my html form layout to show up as checked if it is checked in FileMaker, and to not show up as checked on the web page if it is not checked in FileMaker. I have played around with some code (the checkbox is part of a table) <tr> [FMP-ValueList: specs images, List=Yes] <td width="234"> <div align="right"> <input type="checkbox" name="specs images" value="[FMP-ValueListItem]"> </div> </td> [FMP-ValueListChecked]>[FMP-ValueListItem][/FMP-ValueList] Not quite getting the results I am after. Anyone with some thoughts or helpful suggestions? LR
September 30, 200223 yr Author Sorry, I dont quite follow where I would include the IF Else and the End If? LR
September 30, 200223 yr Larry, Should be like this: <tr> [FMP-ValueList: specs images, List=Yes] <td width="234"> <div align="right"> <input type="checkbox" name="specs images" value="[FMP-ValueListItem]" [FMP-ValueListChecked]>[FMP-ValueListItem] </div> </td> [/FMP-ValueList] Give that a go. All the best. Garry
September 30, 200223 yr Author Ok, as suggested I used the above: <tr> [FMP-ValueList: specs images, List=Yes] <td width="234"> <div align="right"> <input type="checkbox" name="specs images" value="[FMP-ValueListItem]" [FMP-ValueListChecked]> </div> </td> [/FMP-ValueList] I did leave off the [FMP-ValueListItem] since It generated a text string "Yes" next to my checkbox which I did not need. Now this works and shows the item checked in my form if it is checked in FileMaker. Question: the form this sits in has a submit changes button at the bottom. All the other text fields in the form work when I hit submit changes. But if I try to uncheck the checkbox and submit changes...it does not make the change to the box in FileMaker. Not quite sure why? LR
September 30, 200223 yr I think you may need to add this line to the form: <input type="hidden" name="specs images" value=""> Hope this works. Garry
October 1, 200223 yr Author Yikes! Finally got it to work. Ended up with a page with a lot of checkboxes. Talk about some hairy cdml code. Dont think we will be doing much more of the solutions that include checkboxes. LR
Create an account or sign in to comment