Is it possible to display image from previous question in another question

1. What is the issue? Please be detailed.
I would like to display the sketch drawn in a previous question in another page

2. What steps can we take to reproduce this issue?
create a an image question with draw appearance then create a note page that will display the sketch drawn in the previous question

3. What have you tried to fix the issue?
created both questions. i used the image variable to show it on the note page but the note page says the image is missing

4. Upload any forms or screenshots you can share publicly below.

Could you share a related extract of your XLSForm, please?

1 Like

Hi, @wroos!

Thank you for your reply. Can I send the xlsform in a private message?

Cheers.

You're using the image column, right? I think this is an XLSForm limitation. The way it converts the form, the filename is always looked up in the form media folder, not in the media for the form instance that's being filled out.

One thing you could try is using a read-only image instead of an image label. In the calculation column, you can put a reference to the question that captured the drawing (e.g. ${annotated}).

2 Likes

Hi, Hélène!

Amazing! It worked! Thank so much! :smiling_face_with_three_hearts:
Thanks, too, @wroos.

ODK is :heart:

Cheers,
Vinia

2 Likes

Hi @LN, when you say 'read-only', is there a way to force the appearance so that the image cannot be modified?

That would be the idea with making it read only. In your XLSForm, make sure you have the read_only column and put yes in it: https://docs.getodk.org/form-logic/#read-only-questions I hope this works for you!

1 Like

Oh, I was not aware of that option - I never needed it before so that I was looking at image appearance. Thanks for pointing me in the right direction!

1 Like