HZNM.COM
welcome to my space
X
Search:  
 HOME   Form submit emptyText of combo
Form submit emptyText of combo
Published by: jane 2010-03-18
Welcome to:hznm.com

  • I have a form that has some tabs and some combo boxes.
    When i submit the form, combo boxes send emptyText if user did not select any.
    Creating an AOL OpenBlog Reader: Part 2 | dev.aol.com::
    Jan 11, 2008 The next update involves adding a handler to the submit button var cbx_blogs = new Ext.form.ComboBox( { store: ds_aolBlogs, editable: false, displayField: "title", mode: "remote", triggerAction: "all", emptyText: "Select a blog. The combo box registers an onselect event that when fired will
    http://dev.aol.com/blog/bricemason/creating-aol-openblog-reader-part-2
    HOME
    ExtJs2.0学习教程(8)--Ext.FormPanel之第五式(综合篇)_设计家园::
    2008年8月15日 form.form.submit();//提交 } function reset(){ form.form.reset() xtype:"combo", name:"Degree", fieldLabel:"学位", store:["小学","初中","高中","专科","本科","硕士","博士"], emptyText:"请选择适合你的学历 ", anchor:"90%"
    http://www.dwww.cn/News/2008-8/20088152059587894.shtml
    HOME
    Combo boxes have a code such as:

    new Ext.form.ComboBox(
    {
    RIAForge Forums : ColdExt : General : ComboBox submitting ::
    <ext:comboBox id="merchantsearch" name="merchantsearch" emptyText="Select a Merchant . <div class="x-combo-list-item" style="text-align:left;"> I wonder if there is a way to submit both values from the ComboBox.
    http://coldext.riaforge.org/forums/messages.cfm?threadid=4924002D-B946-CE46-DB6D7653569882C4
    HOME
    Gmane -- Mail To News And Back Again::
    Now you can hide it, or set which options are available in the combo bo= x. the call to form.submit()= , in form + were fckeditor has been unloaded
    http://article.gmane.org/gmane.comp.cms.jahia.cvs/15884
    HOME
    store: favoriteFieldStore,
    fieldLabel: 'Favorite Field',
    name: 'favoriteField1',
    displayField:'favoriteField',
    readOnly: true,
    typeAhead: true,
    mode: 'local',
    triggerAction: 'all',
    emptyText: 'Select a Field ...',
    selectOnFocus:true
    }
    );

    What is the mistake?


  • create an empty formpanel with just that combo (from post #1), and the override from that link above, and see if it still submits the combo's emptytext.


  • combo has attribute "valueField" default value equals "displayField", if you not point out the "valueField". maybe you can try this on.
    displayField:'favoriteField',
    valueField:'favoriteField',


  • Thanks for your answers. I tried your propositions but those were not worked.
    I have a lot of other forms that have some tabs and combos, but just this form submit emptyText. What should I do?


  • the combo's emptyText is currently treated as "the default value to submit when there is no input from the user" -- i.e. if the combo is blank, the emptyText will always be submitted.

    to overcome this problem, you could use this override:
    37025





  • Challenging Books For A 14 Year Old?
    First guitar : acoustic or electric?

    You are looking at:hznm.com's Form submit emptyText of combo, click hznm.com to home
     
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ