DOJO form FilteringSelect allow user entered data

∥☆過路亽.° 提交于 2019-12-02 18:34:32

问题


I want to create a form with FilteringSelect element and would be great if use could enter custom value. I tried to do that with comboBox but without success (it sends always value - tried all available tricks).
With FilteringSelect I already tried to set up custom Validator (function(value,constraints){return false;}) but it still doesnt now allow me to send custom value.

BTW: Im creating a form with Zend_Dojo_Form .


回答1:


I made small work around ;)

dijit.byId('nameOfTheWidget').item.value;

assigned in onChange event to hidden input.
Tricky but works as I wanted.
It means I made it with ComboBox



来源:https://stackoverflow.com/questions/5251263/dojo-form-filteringselect-allow-user-entered-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!