简体   繁体   English

DOJO表格FilteringSelect允许用户输入数据

[英]DOJO form FilteringSelect allow user entered data

I want to create a form with FilteringSelect element and would be great if use could enter custom value. 我想用FilteringSelect元素创建一个表单,如果使用可以输入自定义值,那就太好了。 I tried to do that with comboBox but without success (it sends always value - tried all available tricks). 我尝试使用comboBox做到这一点,但没有成功(它总是发送值-尝试了所有可用的技巧)。
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. 使用FilteringSelect,我已经尝试设置自定义验证器(函数(值(约束,约束){return false;}),但现在仍然不允许我发送自定义值。

BTW: Im creating a form with Zend_Dojo_Form . 顺便说一句:我用Zend_Dojo_Form创建一个表单。

I made small work around ;) 我做了一些小工作;)

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

assigned in onChange event to hidden input. 在onChange事件中分配给隐藏的输入。
Tricky but works as I wanted. 整rick,但按我的意愿工作。
It means I made it with ComboBox 这意味着我用ComboBox做到了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM