Select to view content in your preferred language

How do we write AND / OR Conditional Visibility in Field Maps Arcade

767
3
Jump to solution
02-21-2022 12:49 PM
neomapper
Frequent Contributor

How do I write a filter statement in arcade in field maps for grouped fields? 

Assignment IS NOT NULL AND Service_Finished_Date IS NOT NULL AND Mapped IS NULL

OR

Sales Department IS NULL AND Office IS NULL

 

neomapper_0-1645476129541.png

neomapper_1-1645476395050.png

 

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

It's a little more hidden. You have to click on the options for a condition and select "add condition".

jcarlson_0-1645536963461.png

 

- Josh Carlson
Kendall County GIS

View solution in original post

0 Kudos
3 Replies
jcarlson
MVP Esteemed Contributor
var asgn = $feature['assignment']
var sfdt = $feature['service_finished_date']
var m = $feature['mapped']
var dept = $feature['sales_department']
var o = $feature['office']

if (
    (!IsEmpty(asgn) && !IsEmpty(sfdt) && IsEmpty(m))
    ||
    (IsEmpty(dept) && IsEmpty(o))
    ) {
    // do something here
}

 

This isn't specific to Field Maps, but if you wanted to replicate that SQL filter in Arcade, it could look like the expression above.

- Josh Carlson
Kendall County GIS
0 Kudos
neomapper
Frequent Contributor

Does the new Map Viewer not support the classic filtering options for "adding a set" ?

neomapper_0-1645496304950.png

 

0 Kudos
jcarlson
MVP Esteemed Contributor

It's a little more hidden. You have to click on the options for a condition and select "add condition".

jcarlson_0-1645536963461.png

 

- Josh Carlson
Kendall County GIS
0 Kudos