Yes, let's figure out your issue!
Thanks for sharing this example form. After playing with the example form, I think I understand what you are trying to do, but I wanted to double-check.
- If a data collector tries to enter data, check (based on an ID) if it already exists and stop them from re-entering data
- But also show the existing data associated with that ID and let them change it if it is wrong
So everything will happen through this one single form, but the form needs to be able to create an entity, check against existing entities, and also update an existing entity, yes? I can see that the form doesn't quite work to do part of updating an entity.
Could you tell me more about what you mean by the following?
When I open the entry for editing, instead of seeing the data as originally entered, I see the message given when an entry is created for an observation that is already in the system.
What is also probably adding confusion is the different things (submissions, entities) that can be edited and what does or doesn't have an effect on something else. When you 'open the entry for editing', are you:
a) editing the submission that first made the entity (editing a submission after it creates an entity doesn't affect the entity)
b) opening an entity edit pop-up in Central to edit the data of the entity (this is one way for an admin/manager in Central to fix entity data as they see it without a custom form)
c) opening the form to make a new submission, entering an ID to select an existing entry, and then trying to edit the data (the path supported by the newest Entity Updates release of Central)
What version of Central are you trying this with? The latest release 2023.5 from a few weeks ago is the only release that supports Entity Updates via forms and submissions (path c) so I am imagining all of this in the context of that release.
In the morning (in California) I can work on getting you an improved example form, but I wanted to reply before then in case you have any other useful clues for me. Please let me know where I might be misunderstanding things about your scenario!
We really appreciate hearing how things are going with entities, especially the problems!
Finally, welcome to the forum! If you have a moment, please introduce yourself! I believe you are a colleague of @aurdipas?