Snog
Well-known member
A simple request to add the option of using AutoComplete in option text boxes. That simply means adding the {$formatParams.class} option.
I've tested this by changing the admin template option_list_option_textbox to this:
And then add this to the format parameters in an option:
So far as I can tell it works without a problem.
I've tested this by changing the admin template option_list_option_textbox to this:
Code:
<xen:textboxunit label="{$preparedOption.title}" name="{$fieldPrefix}[{$preparedOption.option_id}]" value="{$preparedOption.option_value}"
hint="{$formatParams.hint}" placeholder="{$formatParams.placeholder}" type="{$formatParams.type}" size="{$formatParams.size}" maxlength="{$formatParams.maxlength}" rows="{$formatParams.rows}" inputclass="Elastic {$formatParams.class}" >
<xen:explain>{xen:raw $preparedOption.explain}</xen:explain>
<xen:html>
<xen:include template="option_list_option_editlink" />
<input type="hidden" name="{$listedFieldName}" value="{$preparedOption.option_id}" />
{xen:raw $editLink}
</xen:html>
</xen:textboxunit>
And then add this to the format parameters in an option:
Code:
class = textCtrl AutoComplete AcSingle
So far as I can tell it works without a problem.
Upvote
0