Select to view content in your preferred language

How to make a field editable or calculated depending on a condition in Arcade?

235
1
Jump to solution
10-29-2024 12:50 PM
JamesPoeschel
Frequent Contributor

I have a field I need to be set to 0 if another field is equal to 0, otherwise, I'd like the field to be editable and show its normal drop down. Is this possible?

 

if ($feature.Transit_BusStopLocation == 0) {
  return 0
}

// else show drop down

 

 

1 Solution

Accepted Solutions
ChristopherCounsell
MVP Regular Contributor

No, editable questions won't allow calculations in Forms. 

https://doc.arcgis.com/en/field-maps/latest/prepare-maps/configure-the-form.htm#ESRI_SECTION2_5F65DF...

Survey123 allows for this.

You could:

  • Add an extra field to allow for manual entry
  • Always calculate the exisiting field and add logic have it point to the manual entry or apply the desired calculation 

View solution in original post

0 Kudos
1 Reply
ChristopherCounsell
MVP Regular Contributor

No, editable questions won't allow calculations in Forms. 

https://doc.arcgis.com/en/field-maps/latest/prepare-maps/configure-the-form.htm#ESRI_SECTION2_5F65DF...

Survey123 allows for this.

You could:

  • Add an extra field to allow for manual entry
  • Always calculate the exisiting field and add logic have it point to the manual entry or apply the desired calculation 
0 Kudos