Select to view content in your preferred language

Else If in Dashboard Lists

520
2
Jump to solution
07-28-2022 10:55 AM
by Anonymous User
Not applicable

Hello everyone,  I am working with the list widget in dashboards. Background - using survey123 and the users enter the time of facility checks. There are five separate entries for facility checks.  If there is no time input , then we don't want facility check to display.  In the list widget, I typed in 1. Facility Check:, 2. Facility Check:, etc. I don't think this is possible, but is there a way to have the 1. Facility Check:, 2. Facility Check:, to not display if there is no variable {facility_check_1}, {faciliyt_check_2}.

1.  Facility Check: {facility_check_1}

2.  Facility Check: {facility_check_2}

3.  Facility Check: {facility_check_3}

4.  Facility Check: {facility_check_4}

5.  Facility Check: {facility_check_5}

My solution is to change it like the below, but the users may not want that.

Facility Check

02:30

13:15

 

Thank you,

Annette

0 Kudos
1 Solution

Accepted Solutions
RussellLundstrumUSACE
Occasional Contributor

I'm typing on my phone right now so I can't verify, but something along the lines of this:

 

var fc1 = $feature.facity_check_1

IIf(fc1 != IsEmpty, '1. Facility Check:' + fc1, '')

 

In other words, if facility check 1 is not empty, give me the label and the value, otherwise return null. And repeat for the rest 

 

View solution in original post

2 Replies
RussellLundstrumUSACE
Occasional Contributor

I'm typing on my phone right now so I can't verify, but something along the lines of this:

 

var fc1 = $feature.facity_check_1

IIf(fc1 != IsEmpty, '1. Facility Check:' + fc1, '')

 

In other words, if facility check 1 is not empty, give me the label and the value, otherwise return null. And repeat for the rest 

 

by Anonymous User
Not applicable

Thank you. I didn't think of it that way. Excellent!

0 Kudos