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.

checkboxes are not updating field for some reason:

Featured Replies

I have a field in my database that uses a field value list using checkboxes and in my CDML page, I use a FMP-ValueList to display the field using checkboxes as shown below:

[FMP-ValueList: normal_edition_type]

<input type="checkbox" name="normal_edition_type" [FMP-ValueListChecked] onClick="if(this.checked){unCheckSpecials();}">[FMP-ValueListItem]<br />

[/FMP-ValueList]

Everything appears fine and great but for some reason when I try to update the record with a change in the checkbox such as unchecking all of them, the field in the database still shows the value that it had prior to the update.

All other fields are updating fine, such as those fields that use a pop-up list, regular text fields and the like. It seems to my observation that it is the field with checkboxes that aren't being updated.

I can't seem to figure out why the field in the database is not being updated for some reason.

Thanks.

You don't seem to have VALUE ="something" set properly..also that <BR> worries me...check you JS function..but in general:

  

Syntax example(s)

	Display a value list as radio buttons using an HTML file

		[FMP-ValueList: Groups]

			<input type="radio" name="Groups"

				value="[FMP-ValueListItem]" [FMP-ValueListChecked]>[FMP-ValueListItem]

		[/FMP-ValueList]

hope it helps

  • Author

Stupid me, I forgot the value statement as you said. Added that value statement and everything is working accordingly.

Thanks.

No problem....it happens to me X times a day...when you work with 100s of lines of code it is easy to overlook the fact that "the keyboard doesn't follow the mind" wink.gif

there has been A LOT of times when I wished I had a dog so I can use the "dog eat my code" excuse grin.gif

but then again....that is why we have forums smile.gif

RE: "the keyboard doesn't follow the mind"

Love that smile.gif

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.