Skip 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.

Button to navigate to next value in a Value List

Featured Replies

  • Newbies

Hi All,

I have simple layout with a value list. This is a conditional value list that is changed based on a selection in the preceding field.

I basically want to create a simple "Next" button to go to the next value in a Value List and I can't think of a way to do this. I am playing with GetValue and ValueListItems but can't find a way to assess the current value of the field and then add a +1 to go to the next value. Any guidance would be greatly appreciated.

This is a little difficult to understand. If (as it seems) you have a field formatted as a drop-down list (or a pop-up menu), and you want to calculate the value that is next in the value list relative to the currently selected value, you could do something like:

Let ( [
listOfValues = ValueListItems ( "" ; "YourValueList" ) ;
i = ValueCount ( Left ( listOfValues ; Position ( ¶ & listOfValues & ¶ ; ¶ & YourField & ¶ ; 1 ; 1 ) ) )
] ;
GetValue ( listOfValues ; i + 1 )
)

Note that if YourField is empty or contains a value that is not in the value list, the result will be the 1st value in the value list. If YourField contains the last value in the value list, the result will be empty. If you prefer, this behavior can be changed to cycling over the value list by changing the last line to:

GetValue ( listOfValues ; Mod ( i ; ValueCount ( listOfValues ) ) + 1 )

 

 

  • Author
  • Newbies

Yes, this is exactly what I needed. Works wonderfully! Thank you so much for taking time to write this!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.