Select to view content in your preferred language

Arcade Expression does not populate field

230
1
Jump to solution
05-30-2025 01:58 PM
TimHayes3
Frequent Contributor

Hello, 

In Field Maps Designer - Form, I have created an expression that if UPD_PERSON contains the letters "FFD" that the value in UPD_PERSON will get populated in UPDATE_BY.

 

I test it in Field Maps, make edits to a point, and the UPDATE_BY field stays empty. 

Here is the calculated expression I added to UPDATE_BY field:

if (Find("FFD", $feature.UPD_PERSON) > -1) {
  return $feature.UPDATE_BY;
}
 
Can someone tell me what I need to do fix the expression?
 
 
On a separate note, I have a UPDATE_DATE field that gets autopopulated with the current date using the Arcade expression Now (). No problems with this expression. 
 
Thank you. 
 
0 Kudos
1 Solution

Accepted Solutions
TimHayes3
Frequent Contributor

I figured this out:

var DEPT1 = $feature.UPD_PERSON;

if (Find("FFD",DEPT1,0)>-1)
{return $feature.UPD_PERSON;}
 
Now it works! 

View solution in original post

0 Kudos
1 Reply
TimHayes3
Frequent Contributor

I figured this out:

var DEPT1 = $feature.UPD_PERSON;

if (Find("FFD",DEPT1,0)>-1)
{return $feature.UPD_PERSON;}
 
Now it works! 
0 Kudos