Select to view content in your preferred language

Not displaying attachments in Editor Mode

429
2
Jump to solution
12-25-2022 06:27 AM
KARIMLABIDI
Occasional Contributor

Hello, I would like not display the attchments when I Edit a feature. The Esri script works like a charm https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=popup-editaction but I don't find the way to hide attchments.

KARIMLABIDI_0-1671978396713.png

Any Ideas?

Thank you everybody and merry Christmas!

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
LaurenBoyd
Esri Contributor

 Hi @KARIMLABIDI ,

If you're wanting to hide the attachments widget in the Editor's UI, you can set the allowAttachments property on the LayerInfo to false. The following codepen is the Popup with Edit Action sample with the allowAttachments property set to false on line 142: https://codepen.io/laurenb14/pen/poZEJYZ?editors=1000 

Hope this helps!

Lauren

View solution in original post

0 Kudos
2 Replies
LaurenBoyd
Esri Contributor

 Hi @KARIMLABIDI ,

If you're wanting to hide the attachments widget in the Editor's UI, you can set the allowAttachments property on the LayerInfo to false. The following codepen is the Popup with Edit Action sample with the allowAttachments property set to false on line 142: https://codepen.io/laurenb14/pen/poZEJYZ?editors=1000 

Hope this helps!

Lauren
0 Kudos
KARIMLABIDI
Occasional Contributor

Thank you Laurent, it works!!

0 Kudos