|
POST
|
You can check whether the service order number is empty before the filtering the FeatureSet for (var t in services) {
var tableID = t["SERVICE_ORDER_NUMBER"];
if (!IsEmpty(tableID)) {
for (var p in Filter(surveys, "service_order_number = @tableID")) {
feat = {
attributes:
{
SERVICE_ORDER_NUMBER: tableID,
Backflow_Required: p["backflow_required"]
}
};
Push(features, feat);
}
}
}
... View more
07-24-2025
11:51 AM
|
1
|
0
|
787
|
|
POST
|
When posting code, use the "Insert/Edit code sample" button instead of attaching it as a text file. It's much easier to read and make reference to. It looks like the "service_order_number" field isn't a numeric field, but rather a text field, so the Filter expression would need quotes around the variable. Try using this line instead for (var p in Filter(surveys, "service_order_number = @tableID")) { Using variable substitution (see the Filter function documentation) will automatically take care of whether quote are required around the variable.
... View more
07-24-2025
05:49 AM
|
1
|
2
|
804
|
|
POST
|
You can use the selectors on the map itself, wiring up the actions to filter the layers on the maps.
... View more
07-23-2025
12:16 PM
|
0
|
1
|
487
|
|
POST
|
You can use Arcade in a list widget which does have access to the $feature variable.
... View more
07-23-2025
06:50 AM
|
0
|
4
|
1175
|
|
POST
|
The text widget doesn't have access to the $feature variable, just the $dataSources variable (see the profile for more information). You can get the selected feature with the syntax var dataSource = $dataSources['dataSource_1-187acf797e1-layer-5-selection'];
var selectedFeatures = dataSource.selectedFeatures;
var feature = First(selectedFeatures)
... View more
07-23-2025
06:15 AM
|
0
|
6
|
1183
|
|
POST
|
Glad to help. Don't forget to check the Accept as Solution box. The reason it may not be showing all of them is that the legends generated by Arcade will only give you the values that exist. If your data doesn't contain the values for each of the possibilities, you'll have to use dummy data to build it. Having said that, I don't see how you'll every get "Over" returned. If you changed line 13 to use && instead of ||, then you can get "Over" You can simplify your expression also. In line 14, you don't need to check whether difDays is less than 15 since that was checked in line 13
... View more
07-23-2025
05:57 AM
|
1
|
0
|
736
|
|
POST
|
You can use this expression iif ($feature.closingDate < DateOnly(), "No", "Yes") And in the Styles dialog, move the "No" entry to the Other category and make sure it's turned off
... View more
07-22-2025
01:02 PM
|
1
|
2
|
773
|
|
POST
|
That is the correct case number This is xyzxy from Esri Support Services writing to you in regard to case #03950934- "Cannot configure forms for attribute editing".
... View more
07-22-2025
05:22 AM
|
0
|
0
|
1107
|
|
POST
|
The Intersects function returns a FeatureSet, not a feature, so you'll have to extract a feature from "ints". If you know there will only be one feature in that FeatureSet, then you can use the First function. iif(Count(ints) > 0, First(ints)['placement'], false); Otherwise, you'd have to loop through the FeatureSet to get each feature..
... View more
07-21-2025
11:43 AM
|
0
|
0
|
562
|
|
POST
|
This Arcade script is one way to do that, assuming your Yes/No field is called Binary and the date field called Date. This will return values that you can symbolize with the correct colors var theYear = Year($feature.Date);
var currentYear = Year(Now());
if ($feature.Binary == "Yes") return "black";
When(
theYear <= currentYear, "green",
theYear == currentYear + 1, "yellow",
"red"
); Line 1 gets the year of the point's date. Line 2 gets the current year. Line 4 returns "black" if the Binary field is Yes Line 5 uses the When function (and uses an implicit return) Line 6 returns "green" if the point's year is equal to or prior to the current year. Line 7 returns "yellow" if the point's year is the next year. Line 8 returns "red" if the point's year is after the next year.
... View more
07-17-2025
11:54 AM
|
3
|
0
|
690
|
|
POST
|
This will strip off the directional text if there's a space in the first three characters. var addstreet = $feature['L0Parcel_boundaries.situs_street'];
if (Find(" ", Left(addstreet, 3)) < 0) return addstreet;
return Concatenate(Slice(Split(addstreet, " "), 1), " "); In line 2, if there is no space in the first three characters, the street name is returned. Otherwise, in line 3, the string is split into an array, the first array item is removed using the Slice function, and the items in the array are Concatenated into a text string separated by a space.
... View more
07-16-2025
01:11 PM
|
3
|
2
|
1721
|
|
POST
|
Unfortunately you can't assign colors to a label using Arcade. Instead, you'll have to create label classes for each symbol. In this first class, I want to show the deep points with a red label Use the Filter to show only that attribute and set the Label style. Here I've added another label class to show shallow points with a smaller green label. This class uses a different filter
... View more
07-16-2025
12:37 PM
|
0
|
0
|
743
|
|
POST
|
I have the React Developer Tools extension installed on Firefox and Chrome. When I disable that extension, I can save the form in both browsers.
... View more
07-11-2025
07:49 AM
|
1
|
2
|
2205
|
|
POST
|
Try doing this in an Incognito browser window. I don't have access to that in Chrome, but I could save the form in a private window in Firefox.
... View more
07-10-2025
01:27 PM
|
0
|
0
|
993
|
|
POST
|
I would get that error if I was working in a new map or opening a form that I had created using the Field Maps Designer. I was able to log onto a virtual machine and save the form, so it looks like something that's going on with my machine, not the account settings for ArcGIS Online.
... View more
07-10-2025
12:04 PM
|
0
|
0
|
1318
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 2 weeks ago | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|