|
POST
|
You have to add that code in an Arcade element for the html link to work properly. The code would look something like this (which also uses template literals) var myUrl = Trim(DefaultValue($feature.ASBUILTS, ""));
var output = "";
if (!IsEmpty(myUrl)) {
output = `<a href="${myUrl}" target="_blank" rel="noopener noreferrer">View Link</a>`;
}
return {
type: "text",
text: output
};
... View more
7 hours ago
|
0
|
0
|
15
|
|
POST
|
The code still works when I test it in the Map Viewer. Can you post your code?
... View more
05-29-2026
06:26 AM
|
0
|
3
|
561
|
|
POST
|
What happens when you put the Expects function at the top of the script?
... View more
05-26-2026
09:51 AM
|
0
|
1
|
569
|
|
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
|
1045
|
|
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
|
1083
|
|
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
|
838
|
|
IDEA
|
See the documentation about configuring forms for editing
... View more
04-13-2026
01:20 PM
|
0
|
0
|
517
|
|
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
|
843
|
|
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
|
645
|
|
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
|
691
|
|
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
|
533
|
|
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
|
573
|
|
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
|
423
|
|
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
|
539
|
| 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 |
Online
|
| Date Last Visited |
11 hours ago
|