I reposted this question and I wanted to repost it with additional questions.
I have this simple editing script that intends to:
1. collects the portal user and pre-populated the email field. If a portal user is not detected, then it should return "no email". Unfortunately the script it doesn't work in this standalone JS but it does work in map view.
2. requires a field, in this case the Phone Number.I have a different layout with the field element objects declared individually and it works. But I need the field elements as in this case to be scripted under the form template. I think there is a typo.
3. I don't know if there is a switch to turn it off, but after you create or edit a feature, it would be great to return the editor to its original state and stop the create/edit of other features.
https://codepen.io/lkoumis1/pen/VwgaGLX
@ArnoFiva , @AnneFitz