The = sign in the form

Hello,
When I put the = sign in the xlsform for a choice option, it appears as 0 (zero) in the Enketo link.
How can I make the = sign in the xlsform appear as “=” in the Enketo link?

Thank you

Welcome to the community, @nohandoye! Could you kindly share the relevant part of your XLSForm with us so that we can take a look at it?

Thank you. You have below the first file (screen1.png) with the = sign. And in the second file (screen2.png) you can see the = sign is appear as 0 (zero) in the enketo link.

I want the = sign appear as = in the enketo link.

Thank you

Maybe the = symbol is misinterpreted as markdown. You can try the md escape character \ before the = symbol: \=

Seems to be a bug in Enketo. While the form preview correctly displays the = symbol, it is displayed as 0 when opening the deployed form link.

You can put any character (except space) in front of the = sign and it will be shown - together with whatever character you chose to put in front.

I suggest you report this issue on github: https://github.com/enketo/enketo/issues

Well received. Thank you

Thanks for reporting! It does not seem to be a bug in Enketo. The zero is getting into the generated XML XForm. Here’s an example from using the form builder, just to eliminate XLSForm import as a cause:

        <root>
          <item>
            <name>_</name>
            <label>(</label>
          </item>
          <item>
            <name>__1</name>
            <label>&amp;</label>
          </item>
          <item>
            <name>__2</name>
            <label>0</label>
          </item>
          <item>
            <name>__3</name>
            <label>+</label>
          </item>
        </root>

We’ll look into it.

Update: when downloading the XLSForm back from Kobo and opening it in LibreOffice, I see Err:520 in the cell where the = is supposed to appear.

1 Like