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.

Clearing all repetitions of repeating field

Featured Replies

I have a repeating container field that is used on my layouts to "highlight" whichever layout the user is on (the change layout script sets a graphic into the relevant repetition). I have attached a small file showing the setup.

The repetitions are cleared at the start of every change layout script (there are only 3 layouts at present so this is done by 3 steps, clearing each of the 3 repetitions individually) before the new layout highlight repetition is set.

The number of layouts in the file will need to increase and I don't want to keep adding individual steps to clear each repetition in turn.

I have tried to do this in one script step using Extend and Get(CalculationRepetitionNumber) - unsuccessfully.

What calculation/script step do I need to clear all repetitions of a global container field without specifying each one individually?

Thanks for any help in advance.

Changelayout.zip

You can't do it that way; you need a looping script.

That's the value of value of variables.

Set Variable [ $max; Value:3 ]

Set Variable [ $n; Value:1 ]

Loop

Exit Loop If [ $n > $max ]

Set Field [ Changelayout::g_Button_hilight[$n]; "" ]

Set Variable [ $n; Value:1 + $n ]

End Loop

Changelayout.fp7.zip

Edited by Guest

Or alternatively use this:

http://www.kevinfrank.com/download/2009/repeating-lookup-set-clear.zip

--sd

ChangelayoutSD.zip

  • Author

BruceR

Soren Dyhr

Thanks to you both

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.