- Posts: 153
- Thank you received: 8
Ask the community, share ideas, and connect with other LimeSurvey users!
value="{% if (integeronly == 1 and fValue != "") %}{{ intval(fValue) }}{% else %}{{ fValue }}{% endif %}"
{% if integeronly == 1 %} step=1 {% else %} step="any"{% endif %}
value="{{ fValue }}"
value="{% if (integeronly == 1 and fValue != "") %}{{ intval(fValue) }}{% else %}{{ fValue }}{% endif %}"
{% if integeronly %} step=1 {% endif %}
{% if integeronly == 1 %} step=1 {% else %} step="any"{% endif %}
{# /** * Multiple short texts question, item input text Html * @var $tip * @var $alert * @var $maxlength * @var $tiwidth * @var $extraclass * @var $sDisplayStyle * @var $prefix * @var $myfname * @var $labelText * @var $sufix * @var $kpclass * @var $rows * @var $checkconditionFunction * @var $dispVal * @var $suffix */ #} <!-- answer_row --> <li id='javatbd{{ myfname }}' class="question-item answer-item numeric-item text-item form-group{{ extraclass }}{% if alert %} ls-error-mandatory has-error {% endif %}" {{ sDisplayStyle }}> <!-- color code missing mandatory questions red --> <label class="control-label col-xs-12 col-sm-{{ sLabelWidth }}{% if sLabelWidth == 0 %} hidden{% endif %}" for="answer{{myfname}}"> {{ labelText }} </label> <div class="col-xs-12 col-sm-{{ sInputContainerWidth }}"> {% if prefix or suffix %} <div class="ls-input-group"> {% endif %} {% if prefix %} <div class="ls-input-group-extra prefix-text prefix"> {{ prefix }} </div> {% endif %} <input type="number" min="0" max="10000" placeholder="0" value="{% if (integeronly == 1 and fValue != "") %}{{ intval(fValue) }}{% else %}{{ fValue }}{% endif %}" name="{{ myfname }}" id="answer{{ myfname }}" class="form-control" title="{{ gT('Only numbers may be entered in this field.') }}" {% if size %} size={{ inputsize }} {% endif %} {% if maxlength %} maxlength={{ maxlength }} {% endif %} {% if integeronly == 1 %} step=1 {% else %} step="any"{% endif %} /> {% if suffix %} <div class="ls-input-group-extra suffix-text suffix"> {{ suffix }} </div> {% endif %} {% if prefix or suffix %} </div> {% endif %} </div> </li> <!-- end of answer_row -->