Arcade for Smart Form

643
3
Jump to solution
08-12-2021 04:09 AM
littlebluepenguinnz
New Contributor II

Hi EB community,

I am beginning my Arcade journey. I do not have a background in coding. I've found tutorials on ArcGIS Learn for Arcade..

I specifically want to use Arcade for conditional visibility  in the smart forms in Field Maps, not necessarily for pop-ups or labelling.

Does anyone have a cheat sheet for commonly used expressions?

For example, currently I know how to do $feature()==(), but I'd like to know how to use a conditional expression if any of two answers are true or false. I think false is $feature()!=().

0 Kudos
1 Solution

Accepted Solutions
AaronPulver
Esri Regular Contributor

For checking if two conditions are met you can do:

$feature["attribute1"] == "Some Value" && $feature["attribute2"] == "Some other value"

For checking if one of two conditions are met you can do:

$feature["attribute1"] == "Some Value" || $feature["attribute2"] == "Some other value"

 

View solution in original post

3 Replies
AaronPulver
Esri Regular Contributor

For checking if two conditions are met you can do:

$feature["attribute1"] == "Some Value" && $feature["attribute2"] == "Some other value"

For checking if one of two conditions are met you can do:

$feature["attribute1"] == "Some Value" || $feature["attribute2"] == "Some other value"

 

TravisSizemore
Occasional Contributor

This video has some relevant info at 13:00 and 30:00. 

https://www.youtube.com/watch?v=_M29_CGLQ_k

littlebluepenguinnz
New Contributor II

Thank you both for your help. Have made notes of this for next time.

0 Kudos