Solved Misleading handling of some "readonly" inputs with null value

This topic has been solved
J

Jaxel

Guest
If I put the following code in a template:
<xf:textboxrow name="test_name" value="{$test.name}" readonly="readonly" />
I will properly get the following result:
<input type="text" class="input" readonly="readonly" name="test_name" value="my_value">

HOWEVER, If I put readonly="readonly" in an <xf:select menu, I get a slightly different result. I will instead get:
<select name="test_name" class="is-readonly input" disabled="disabled">
You'll notice there, that...

Read more

Continue reading...