The new enketo supports the no-buttons appearance which allows for select fields for choices that have images, but no labels. (See the grid_test and grid_2_columns fields on the Enketo Widgets Demo Form for an example of what this looks like.) Annoyingly, pyxform will log a warning about any choice that does not have a label. It would be nice to see if we could find a way around this warning, perhaps by leveraging the NO_LABEL functionality that already exists.
Currently using NO_LABEL does not work since our existing patch in pyxform for NO_LABEL seems to break the functionality of keeping the image label with no text.... Currently, if you do not include any text in the label, a warning is printed and, in the itext section of the generated XML, the expected text elements are included for the images. E.g.:
The new enketo supports the
no-buttons
appearance which allows forselect
fields for choices that have images, but no labels. (See thegrid_test
andgrid_2_columns
fields on the Enketo Widgets Demo Form for an example of what this looks like.) Annoyingly, pyxform will log a warning about any choice that does not have a label. It would be nice to see if we could find a way around this warning, perhaps by leveraging theNO_LABEL
functionality that already exists.Currently using
NO_LABEL
does not work since our existing patch in pyxform forNO_LABEL
seems to break the functionality of keeping the image label with no text.... Currently, if you do not include any text in the label, a warning is printed and, in theitext
section of the generated XML, the expectedtext
elements are included for the images. E.g.:But, if you put
NO_LABEL
as the label, thesetext
elements are not created at all....Context: https://github.com/XLSForm/pyxform/issues/610