When using a multimedia question, I've noticed that the image/video/recording gets saved to an attachment ID on CommCareHQ. Is it possible to save or reference that ID in the form so that I can save it to a hidden value?
How to reference attachment id in form
commcare
Related Topic
- What does an irrelevant question evaluate to in CommCare
- Prevent slow calculate conditions from firing when the form is opened
- How to compute the time spent in a form
- What is the syntax to reference form data in a model iteration query
- CommCare – How to Get Timestamp for Exact Time a Question is Answered
- Undisplayed question in form updating a case property
- Conditional Display in CommCare – How to Show Questions Based on Lookup Table Answers
- Referencing Columns in CommCare – How to Use Lookup Table in Display Condition
Best Answer
CommCare automatically generates an attachment ID when multimedia is attached to a form. To save or reference this ID, you can create a hidden value and set the calculation equal to the media capture question. If you need to refer to this attachment ID in another form, you can save the hidden value as a case property and reference it as required.