Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CDML Checkboxes..anyone else having problems??

Featured Replies

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??

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

cool.gif" border="0

  • 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

cool.gif" border="0

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"**

  • 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

cool.gif" border="0

I forgot to say that what you were suggesting does indeed work as well...even with the checkboxes! Thanks again!

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.