|
POST
|
The code still works when I test it in the Map Viewer. Can you post your code?
... View more
2 weeks ago
|
0
|
3
|
261
|
|
POST
|
What happens when you put the Expects function at the top of the script?
... View more
3 weeks ago
|
0
|
1
|
278
|
|
POST
|
The number you're calculating is probably too big for a regular integer field. A small integer field (16-bit) only allows for values from -32,768 to 32,767. An integer field (32-bit) allows for values from -2,147,483,648 to 2,147,483,647. Both of these are shorter than what you want. A big integer field (64-bit) allows for values from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
... View more
05-01-2026
09:19 AM
|
0
|
0
|
728
|
|
POST
|
To get your format of "2026-05-110356" (did you want to leave out the day?), you would use the syntax Text(Now(), "Y-MM-HHmmss")
//if you want to include the day, use this syntax
Text(Now(), "Y-MM-DD-HHmmss") However, this cannot be converted into an integer with the dashes included. You can use this syntax to return an integer Number(Text(Now(), "YMMHHmmss"))
... View more
05-01-2026
08:26 AM
|
1
|
1
|
766
|
|
IDEA
|
Do you own the layer that you're editing? If so, you will be able to edit all fields regardless of how you set their read-only status. You should test this with another account.
... View more
04-15-2026
12:47 PM
|
0
|
0
|
652
|
|
IDEA
|
See the documentation about configuring forms for editing
... View more
04-13-2026
01:20 PM
|
0
|
0
|
393
|
|
IDEA
|
You can make a field uneditable in a web map by using the Form editor.
... View more
04-13-2026
01:12 PM
|
0
|
0
|
599
|
|
POST
|
I use the JavaScript language selection in the code sample window for Arcade code, which highlights code in a different way than the language that you selected. When working with a normal FeatureSet, you should be able to return the length of a feature using "f.Shape_Leng". If that doesn't work with your feature, I would suggest using Console function to examine the schema and its available fields. console(Schema(fs).fields)
... View more
04-13-2026
01:05 PM
|
0
|
0
|
476
|
|
POST
|
The first line of your script doesn't return a FeatureSet, but rather a dictionary. You have to use the layer property to get the features from $dataSource. var fs = $dataSources["dataSource_1-19d7400ea8f-layer-20"].layer;
var total = 0;
for (var f in fs) {
var len_in_inches = f.Shape.STLength() * 12;
var width_in_inches = Number(f.Width_Inches, 0);
total += width_in_inches * len_in_inches;
}
return total;
... View more
04-13-2026
10:06 AM
|
0
|
2
|
522
|
|
POST
|
You can use the Union function to combine all the intersecting karst features into a single feature, which you'll intersect with your original feature to get the area calculations. Give this a try. I haven't tested it out, however... //Define Karst FeatureSet
var karst = FeatureSetByPortalItem(
Portal("https://www.arcgis.com"),
"689167928f6e49f689d0f08b31ad8c47",
0
);
//Create FeatureSet of Karst features that intersect the aoi ($feature)
var karst_aoi = Intersects(karst, $feature);
//Calculate acreage of aoi
var aoi_acre = AreaGeodetic($feature, "acres");
//Create an array of the karst features to use in the Union function since it doesn't accept a FeatureSet
var karst_array = [];
for (var c in karst_aoi) {
Push(karst_array, c);
}
var karst_feature = Union(karst_array);
var karst_percent = AreaGeodetic(Intersection(karst_feature, $feature), "acres") / aoi_acre * 100;
var final_text = `Approximately ${karst_percent}% of the site contains karst.`;
return {
type: "text",
text: final_text
};
... View more
04-13-2026
09:11 AM
|
1
|
1
|
371
|
|
POST
|
Use the DomainName function to get the description output += '<br>' + DomainName(related_data_row, "field1_table") + " - " + related_data_row.field2_table; Also, you can simplify the code a little bit var output = "No Related Records...";
if (related_data_filtered_count > 0) {
output = "Total of " + related_data_filtered_count + " records : ";
for (var related_data_row in related_data_filtered) {
output += '<br>' + DomainName(related_data_row, "field1_table") + " - " + related_data_row.field2_table;
}
}
... View more
04-10-2026
12:01 PM
|
1
|
1
|
420
|
|
POST
|
Are you checking whether there are any records in related? var related = FeatureSetByRelationshipName($feature, "ACProductsGroundwaterSamplingPoints_ACProductsQuarterlySurveyForm");
return IIf(Count(related) > 0, First(related)["WellID"], "No related records");
... View more
03-30-2026
12:39 PM
|
0
|
1
|
312
|
|
POST
|
I ended up going another route. I created a separate experience for my documentation and using this for my index.html. This way, I can update the help documentation without needing to recompile the experience and deploying it. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Spatial Prioritization help</title>
<link rel="stylesheet" href="./style.css">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
</head>
<body>
<main>
<!-- <h1>Spatial Prioritization help</h1> -->
</main>
<script>
window.location.replace("https://experience.arcgis.com/experience/d577837e4c5f48e8bda663bbd9da03c1/page/Settings");
</script>
</body>
</html>
... View more
03-25-2026
06:11 AM
|
0
|
0
|
357
|
|
POST
|
There are several ways to do that. You can use html tags in the string. You can also use css. `• <font size="3">${nm} <a href =${link}>${name}</a> ${yr}</font>`
... View more
03-23-2026
09:23 AM
|
1
|
0
|
515
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 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 |
a week ago
|