DOJO表单FilteringSelect允许用户输入的数据 [英] DOJO form FilteringSelect allow user entered data
问题描述
我想用FilteringSelect元素创建一个表单,如果使用可以输入自定义值,则会很好。我试图用comboBox做这件事,但没有成功(它发送总是值 - 尝试所有可用的技巧)。
With FilteringSelect我已经尝试设置自定义Validator(function(value,constraints){return false; }}但是现在还没有允许我发送自定义值。
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:使用Zend_Dojo_Form创建一个表单
BTW: Im creating a form with Zend_Dojo_Form .
推荐答案
我做了小工作;)
dijit.byId('nameOfTheWidget').item.value;
将onChange事件分配给隐藏的输入。
捣蛋,但按照我想要。
这意味着我用ComboBox
assigned in onChange event to hidden input.
Tricky but works as I wanted.
It means I made it with ComboBox
这篇关于DOJO表单FilteringSelect允许用户输入的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!