Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I create a label for a custom Orbeon control
    primarykey
    data
    text
    <p>The label is missing the "for" attribute on my custom control. I was using lhha mode, but have now switched to custom-lhha mode to try to correct the issue. </p> <p>The code below is doing something very odd. The label element contains two nested spans with the correct label content and the for attribute contains a partial of the correct id.</p> <pre><code>&lt;xbl:xbl xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xxf="http://orbeon.org/oxf/xml/xforms" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"&gt; &lt;xbl:binding element="fr|image-picker" id="fr-image-picker" xxbl:mode="lhha custom-lhha binding value" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"&gt; &lt;metadata xmlns="http://orbeon.org/oxf/xml/form-builder"&gt; &lt;display-name lang="en"&gt;Image Picker&lt;/display-name&gt; &lt;icon lang="en"&gt; &lt;small-icon&gt;/apps/fr/assets/img/camera.png&lt;/small-icon&gt; &lt;large-icon&gt;/apps/fr/assets/img/camera.png&lt;/large-icon&gt; &lt;/icon&gt; &lt;templates&gt; &lt;view&gt; &lt;fr:image-picker id="image-picker" ref=""&gt; &lt;xf:label ref=""/&gt; &lt;xf:hint ref=""/&gt; &lt;xf:help ref=""/&gt; &lt;xf:alert ref=""/&gt; &lt;/fr:image-picker&gt; &lt;/view&gt; &lt;/templates&gt; &lt;/metadata&gt; &lt;xbl:template&gt; &lt;xh:label for=""&gt;&lt;xf:output value="xxf:label('fr-image-picker')"/&gt;&lt;/xh:label&gt; &lt;xf:input ref="xxf:binding('fr-image-picker')" class="image-picker"/&gt; &lt;/xbl:template&gt; &lt;/xbl:binding&gt; </code></pre> <p></p> <p>Any tips would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload