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.

Editing multiple records (checkboxes)

Featured Replies

  • Newbies

I'm sure there's a simple answer to this, but...

Is there a way to edit multiple fields using checkboxes? The format file contains a form showing multiple records- each with a checkbox displayed for the field 'Remove'. I want the user to be able to check multiple records, subit the form, , and have the records edited. I have tried doing this 2 different ways, but I must be doing something wrong.

Thanks in advance!

  • 4 weeks later...

quote:

Originally posted by J Angel:

I'm sure there's a simple answer to this, but...

Is there a way to edit multiple fields using checkboxes? The format file contains a form showing multiple records- each with a checkbox displayed for the field 'Remove'. I want the user to be able to check multiple records, subit the form, , and have the records edited. I have tried doing this 2 different ways, but I must be doing something wrong.

Thanks in advance!

Hi J,

I am working on a real-time sign in program and had to do what you are talking about but with only one record at a time. I'm pretty sure that if you set up both of your pages, the one you are talking about that has the "remove" and seperate checkboxes, and a page that you get to after declaring that you only want to see the [FMP-currentrecID]'s of those selected by the checkboxes.

You will have to create a new field to validate this and the calculation would be like If(whateverfieldhasthecheckboxes="",0,1) . Then you put the 1 (if the checkbox is not blank) in the link to the format page where you have set up for editing the multiple records and have the page have a

[FMP-If:Field:whateveryounamedthenewvalidationfield .neq.][whateveryounamedthenewvalidationfield]

then your <input type="text" VALUE="[FMP-field:whateverfield]">

[/FMP-If]

I think this may work, or a variation of this may work. I hope I helped put you in the right direction.

  • 2 weeks later...

The only way I know to edit multiple records - in FMP and over the web -- is with a script. Perform a find to isolate the desired records, then Replace the field values or use a loop to work through each record individually.

I'll leave it to others to speak of the evils of running scripts over the web. wink.gif" border="0

If you want to see all the joy of running a looping script you will find all the necessary code and db structure as a (if I recall correctly) four-part "...Entertainment..." on the cdml forum. Spend a little time to learn a lot.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.