XLSForm / pyxform

A Python package to create XForms for ODK Collect.
BSD 2-Clause "Simplified" License
80 stars 136 forks source link

Image formatting for select_multiple choices does not work when used alongside choice filters #466

Closed DavisRayM closed 4 years ago

DavisRayM commented 4 years ago

Software and hardware versions

pyxform v1.1.0

Problem description

When an XLSForm contains a select_multiple question that has choices with Image formatting plus a choice filter. The image formatting is ignored, the question body only includes the name and label and ignores the translation. An example would be this form:

<h:body>
    ...
    <itemset nodeset="instance('birdsseen')/root/item[selected( /data/birds_sighted ,cf)]">
      <value ref="name"/>
      <label ref="label"/>
    </itemset>
</h:body>

Steps to reproduce the problem

Create an XLSForm with a filtered(choice filter) select_multiple question that has choices with the media::image column

Expected behavior

Choices with image formatting should display the image in the question.

Other information

lognaturel commented 4 years ago

Duplicate of https://github.com/XLSForm/pyxform/issues/464.