Hello,
I'm designing a Field Maps form for an invasive plant species monitoring project. Field staff may know either the species' common name or scientific name—but not always both. My goal is to allow them to enter whichever name they know and have the remaining fields auto-populate using Arcade.
Form setup:
species_common_name (editable dropdown)
species_scientific_name (editable dropdown)
invasive_type (auto-filled from dictionary)
invasive_category (auto-filled)
state_zone (auto-filled)
Desired behavior:
If species_common_name is entered, the other four fields (including scientific name) auto-fill.
If species_scientific_name is entered instead, the same four fields (including common name) auto-fill.
Only one name field is typically entered; the other should auto-populate.
All fields must remain editable for corrections.
The issue:
Arcade throws an error when assigning an expression to a field (e.g., species_common_name) that also references itself in the logic:
“Test execution error: Invalid variable assignment. Verify test data.”
Even guard clauses like if (!IsEmpty($feature.species_common_name)) { return $feature.species_common_name } trigger the error.
Possible solution:
ChatGPT described "Form Profiles" as a way to create separate workflows:
This would solve the issue cleanly. However, I cannot access https://fieldmaps.arcgis.com — it does not appear to load for anyone I’ve asked. Is that functionality now deprecated or relocated? I have not found any documentation of this feature outside what ChatGPT told me. I considered that ChatGPT made it up but the step-by-step instructions and details were very specific and were repeated on separate inquiries, making it hard for me to believe it was "hallucinated".
My questions:
Is there a current way to create and use Form Profiles?
Has anyone implemented a form with this dual-entry logic (either name fills in the rest)?
Are there reliable alternatives to avoid this circular logic error?
Has anyone else encountered the “Invalid variable assignment” issue and found a workaround?
Any guidance or examples would be greatly appreciated. I’ve already built and tested the Arcade dictionaries and all the desired functionality works perfectly with the exception I can only have it set up to accept only common entries, or only scientific entries, but not both.
Thanks,
C