December 31, 200124 yr I'm working on a real time-sign in program using FM 5.5 Pro. It's going along really well except I can't get the web pages to reflect the checked box in a database in an HTML checkbox to try to edit it checked or unchecked. This is what I've tried: 1) <input type="checkbox" name="FieldName" value="1" [fmp-if:FieldName.eq.1]checked[/fmp-if]> <input type="hidden" name="FieldName"> No luck. Then I thought because it was a custom value list to try: 2) Requested: [FMP-ValueList: Requested, list=Requested] <input type="checkbox" name="Requested" value="[FMP-ValueListItem]" [FMP-ValueList Checked]>[FMP-ValueListItem]<BR> [/FMP-ValueList] This shows both values correctly in the valuelist (next to checkboxes) but doesn't show what box is supposed to be checked...I'm stumped. Anyone have any suggestions??
December 31, 200124 yr quote: Originally posted by Edward Diaz: [FMP-ValueList Checked] If this is exactly what you are using, you may just have an extra space in your CDML code. Try "[FMP-ValueListChecked]" - its all one word, not two. HTH
January 1, 200224 yr Author quote: Originally posted by MeltDown: If this is exactly what you are using, you may just have an extra space in your CDML code. Try "[FMP-ValueListChecked]" - its all one word, not two. HTH Thank you very much for your advice. I finally solved it by the following code (for anyone else having the same problem): <select name="Requested"> [FMP-option: Requested, list=Requested] </select> What's weird is that I never actually got the checkbox to be checked. I went around the problem by declaring the item to be changed as a pop-up menu, and when I hit the edit button for the specific record it works. **Please note that the value list and the field are BOTH named "requested"**
January 1, 200224 yr Author quote: Originally posted by MeltDown: If this is exactly what you are using, you may just have an extra space in your CDML code. Try "[FMP-ValueListChecked]" - its all one word, not two. HTH I forgot to say that what you were suggesting does indeed work as well...even with the checkboxes! Thanks again!
January 3, 200224 yr FWIW, the cdml checkbox works. So too does the html checkbox (enhanced with cdml tags). If you set the field(s) in your web layout as Standard, the appropriate data will get entered through html checkbox structure with requisite cdml tags for the field(s). If someone within the organization needs to view that data directly from the db, it can be done in an employee layout in which the fields are designated (displayed) as checkbox. IMO, the html works better and is easier to control (be it checkboxes or pop-ups). The idea, after all, is to enter data into the proper field in the db via the web. The electrons do not care which structure you use. SIMPLIFY ... Keith
Create an account or sign in to comment