I have a form that creates an entity. One of the form fields (of type “calculate”) is named “label” and should be saved as a property named ‘denomination’ (where `save_to` is set to “denomination”) of the entity. When I submit the form, I see that the form data is saved correctly, but the value of the field named “label” is not saved as the value of the entity's ‘denomination’ property.
2. What have you tried to fix the issue?
If I duplicate the row in the xlsform that creates the label and change the new field name to “label2,” everything works fine.
Really appreciate you taking the time to report it even though you came up with a workaround, this is the kind of edge case bug that can easily drive someone crazy.
Might there exist similar issues with other XLSForm reserved keywords? e.g. calculate (type)? The forum.knows (other) issues with "model" as name. Would it be an idea to have a list of reserved keywords, e.g. as part of the ODK template?
This one is very clearly a bug and I don't think it will be hard to address.
I'm not aware of any limitations around calculate being used as a field name. The model issue is an Enketo bug and I've followed up on the original thread.
I don't think there are other reserved keywords as far as field names go but if you have come across others that fail in some way please share so we can triage them.