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.

Displaying a field based on a checkbox

Featured Replies

Hi, Here is my problem. I have a checkbox with 5 options. Call them check1,2,3,4,5. and the field itself checkbox_Checklist. Now depending on which checkbox is selected I want to display a second field. So say check1 is selected I want Check1field to display and also want the check1field to display the number 1. So would this be IF (checkbox_Checklist = "check1";"1";"")? Because I have tried that and it didnt work. Any help is appreciated.

Thank You,

Eric G.

Have a look at the Case() function.

It goes something like this

Case(condition1;result1;condition2;result2;default result)

You can have as many conditions/results as you like and the calc will keep going til it finds one that works.

If it doesn't find one it will use the default result so by using "" as the default you can efectively make a field 'disappear'

HTH

Phil

Edited by Guest

  • Author

Hi Phil thanks for the advice. I had tried using case but maybe I am doing it wrong.

Case(checkbox_Checklist="checkbox1";"1";"checkbox_Checklist=""";"")

I am guessing this means that if Checkbox1 is selected it will display a 1 and if Checkbox1 is deslected it will display nothing/Null. However when I implement this it does return a value of 1 when selected but that value stays when Checkbox 1 is deselected.

Thank You,

Eric G.

You have too many conditions I think. Try something like

Case ( CheckboxList = 1 ; 1)

HTH

Lee

Edited by Guest

Hi

...or this:

Case(

PatternCount( checkbox_Checklist ;check1 ) ; 1 ;

""

)

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.