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
Solved! Go to Solution.
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
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
Thank you. I didn't think of it that way. Excellent!