# ODK select from SVG not displayed with skip logic

**URL:** <https://forum.getodk.org/t/odk-select-from-svg-not-displayed-with-skip-logic/46470>\
**Category:** Support\
**Tags:** enketo\
**Created:** [April 22, 2024, 2:24pm UTC](https://forum.getodk.org/t/odk-select-from-svg-not-displayed-with-skip-logic/46470 "2024-04-22T14:24:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thalie](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/thalie/32/15924_2.png) [@Thalie](https://forum.getodk.org/u/Thalie)\
**Post date:** [April 22, 2024, 2:24pm UTC](https://forum.getodk.org/t/odk-select-from-svg-not-displayed-with-skip-logic/46470/1 "2024-04-22T14:24:02Z")

</div>

**1. What is the issue? Please be detailed.**

When incorporating a _select\_one_ question with an _image-map_ appearance in skip logic, the SVG image is not loaded and displayed on the same page when the relevant condition is enabled in Enketo and requires back and forth in the form to be finally displayed.

**2. What steps can we take to reproduce this issue?**

ODK Central v2023.5.1

Use the same _select\_one_ question with _image-map_ appearance and the same SVG file, in isolation (test 1) and within skip logic (test 2)

 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/e/0/e0c3534834e4dda048091c99fbea02d0f460fb24.png)

(see form attached in 5)

SVG test 1 successfully displays the SVG image as expected

 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/1/2/12ba1e369f5bb53f30b786a7a9334ea2de2d1216.png)

SVG test 2 fails to display the SVG image and triggers an error when attempting to proceed due to a mandatory variable constraint.

 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/4/d/4dca0514e89bf0a957225b51d80612eadedaab16.png)  
 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/7/c/7cd6894ba023eea1d95cded50cdb290cf6e30466.png)

**3. What have you tried to fix the issue?**

This behaviour has been observed in both Firefox and Internet Explorer browsers, so seems independent on the browser.  
The form has only been tested within Enketo and not been tested on ODK Collect.

In test 2, navigating backward (after the right relevant condition has been selected) then forward appears to resolve the display issue, suggesting that the SVG image is loaded with the page when enabled by the skip logic. A potential workaround could be placing it on a different page, though this may disrupt the flow of the form.

 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/4/3/43014d34068388d1d2e669b148fa50d0cbd0bf90.png)

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

[odk\_svg\_test.xlsx](https://forum.getodk.org/uploads/short-url/oQYzaqvWFG05Ntx3eEnCFYf2pmQ.xlsx) (638.5 KB)

I cannot attach the SVG file here but can share somewhere else on request. Format as follows:

```auto
<?xml version="1.0" encoding="utf-8"?>
<!-- (c) ammap.com | SVG map of Switzerland - High -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:amcharts="http://amcharts.com/ammap" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="640" height="480">
	<g id="outlines">
		<path id="AG" title="Aargau" d="M674.56,717.89l2.7,-1.86l3.8,-3.28l3.59,...,3.43L612.34,522.7z"/>
		<path id="AI" title="Appenzell Inner-Rhoden" d="M959.04,605.77l-0.32,..."/>
        ...
	</g>
</svg>

```

---

<div class="post-metadata">

**Author:** ![Sadiq\_Khoja](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/sadiq_khoja/32/3719_2.png) [@Sadiq\_Khoja](https://forum.getodk.org/u/Sadiq_Khoja)\
**Post date:** [April 22, 2024, 3:45pm UTC](https://forum.getodk.org/t/odk-select-from-svg-not-displayed-with-skip-logic/46470/2 "2024-04-22T15:45:07Z")

</div>

Thanks @Thalie for reporting this. I was able to reproduce the issue in Chrome as well.

It seems like an issue in Enketo, I have created a bug in Enketo's GitHub repository [https://github.com/enketo/enketo/issues/1312](https://github.com/enketo/enketo/issues/1312) to track this.

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [April 22, 2024, 5:17pm UTC](https://forum.getodk.org/t/odk-select-from-svg-not-displayed-with-skip-logic/46470/3 "2024-04-22T17:17:26Z")

</div>

@Thalie Has this feature worked in a previous version of Central? I'm trying to understand if it's a regression or not.

---

<div class="post-metadata">

**Author:** ![Thalie](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/thalie/32/15924_2.png) [@Thalie](https://forum.getodk.org/u/Thalie)\
**Post date:** [April 22, 2024, 7:02pm UTC](https://forum.getodk.org/t/odk-select-from-svg-not-displayed-with-skip-logic/46470/4 "2024-04-22T19:02:56Z")

</div>

Hi @yanokwa, I have no idea, that was the first time I was testing this feature (sorry ☺)
