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.

How to add one extra item in Value Lists

Featured Replies

I have created a value list based on Products table.

However, while selecting products, sometime I need to select all products. While showing product name in popup menu, I want to show one more value called "All" for denoting that it applies to all products.

How can I do that?

 

Define a calculation field (result is Text) =

List ( ProductName ; "All" )

and base your value list on that. You may want to prepend a space to " All", in order to force it to the top of the list.

  • Author

How will the product id will be filled when user selects a product that way?

You didn't say anything about product id in the original question... How exactly is your value list defined now? And what do you actually want the target field to contain, after user selected "All"? 

 

 

Edited by comment

  • Author

Currently, the value list setup as first field as product's id and second field as product name.

If the user selects all, then I'll have "All" as product id.

But does it make sense to have the text value of "All" in the product id field? I presume this is a matchfield in a relationship to the Products table, so it would only work if both matchfields were Text fields, and all products had the value "All" added to their ID.

In any case, the product id field will not get populated by the string "All" using a two-field value list. You could use a value list based only on the product name, and have the target field auto-enter an elaborate calculation replacing the name with the id (or the string "All") - but IMHO it would be better to move to another selection method, e.g. a pop-up portal or list view. There the user could either select a specific product or click a [Select All] button.

Another option is to add a Select All checkbox next to the product id field, and use a hidden calculation field as the real matchfield. Or make it a button that populates the field with "All", overriding the user's selection (if any).

 

Edited by comment

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.