Select to view content in your preferred language

Automatically generate point features at the endpoint of line features in Arcgis Online

503
6
05-27-2026 10:51 AM
anonymous55
Frequent Contributor

Hello,

I am looking for a way to automatically add a point to a line when users create a line feature. The point location does not matter, but I want the point to inherit the same attribute values (such as the line date) from the line feature.

I know this can be done in ArcGIS Pro, but I am looking for a way to do it in ArcGIS Online, possibly using Arcade expressions or another workaround.

I’m curious if anyone here has had a similar experience and implemented something like this.

Thanks

0 Kudos
6 Replies
MobiusSnake
MVP Regular Contributor

Although I haven't tried using these, apparently group templates configured in ArcGIS Pro are supported by the ArcGIS Online Web Editor:

https://doc.arcgis.com/en/web-editor/latest/create-and-edit/templates.htm

0 Kudos
EmilyGeo
Esri Regular Contributor

Hi @anonymous55

like @MobiusSnake mentioned, you could create and use shared templates to do this. Those need to be created in Pro, and it requires a few extra steps to bring them into ArcGIS Online- we're working to streamline this process in the near future.

If you want to go that route, you can follow these steps:

  1. Bring the hosted feature service (HFS) with line and point layers into Pro where you can manage the templates. If you don't already have a HFS, you'll need to create that first.
  2. Create a group template in Pro. Using a builder you can configure it to add a point each time you create a line. 
  3. Use the command 'Store templates' in Pro. This stores the group template as a shared template in ArcGIS Online. 
  4. Add the  HFS to a web map in Map Viewer.
  5. Here you could author calculated expressions in the Form to fetch attribute information from another layer. You can do that using a FeatureSet function (see this article for more).
  6. Start editing. You'll see the new template in the Editor pane in apps like Map Viewer, Web Editor, and more. 
0 Kudos
anonymous55
Frequent Contributor

Hello @EmilyGeo 

This is great, and sorry for the delay.

There aren't many resources available about this, which is kind of surprising considering how much useful work can be done with it. I was trying to learn the basics of creating and sharing templates, but I haven't found much documentation or guidance on the process.

However, I'm having a problem using it in ArcGIS Online. I'm getting the following error:


Unable to save your shared template changes

Check the layer settings and confirm that you have the privileges required to make changes.


I can see the templates in the Web Map Templates section after clicking Edit Templates and then Shared Templates, but I can't seem to use them successfully to create feature.

anonymous55_0-1780946577456.png

 

anonymous55_1-1780946601178.png

Please let me know if I can provide any additional details or screenshots to help troubleshoot this issue. I'd really appreciate any guidance or suggestions you can offer.

Thank you for your help. 

0 Kudos
EmilyGeo
Esri Regular Contributor

Hi @anonymous55

It looks like these are set up correctly based on the screenshot you shared. What do you see when you try to use the template in ArcGIS Online to create a feature? 

0 Kudos
anonymous55
Frequent Contributor

Editing is not loading when I try to use it in WebMap. When I click on the create features, nothing happens.

anonymous55_0-1781011935873.png

Also, when I go to Shared Templates, I can't save because the OK button is grayed out.

anonymous55_1-1781012179477.png

0 Kudos
EmilyGeo
Esri Regular Contributor

Hi @anonymous55 

Sorry for the delay in getting back to you! I’m not sure why the templates aren’t working, but if you’re still running into issues, I recommend you reach out to support and start a ticket so they can troubleshoot. 

If you can, feel free to send me a link to the layer — I can take a quick look on my end. 

Also, just a heads-up: if you tag me in your reply, I’ll get notified right away and can respond sooner. Thanks!