[CLOSED] Examples: Registration Form

  1. #1

    [CLOSED] Examples: Registration Form

    After launching Form -> Miscellaneous -> Registration Form example place the mouse to the left of the "Submit Registration" button. The Error Details window is displayed even though there are no issues yet. Any way to fix this?

    I like the look of this error handling for a simple form and want to resuse it.
    Last edited by Daniil; Sep 14, 2012 at 2:02 PM. Reason: [CLOSED]
  2. #2
    Hi,

    1. Set Disabled="true" for the tooltip
    2. Update setErrors method
    function setErrors (cmp, errors) {
                var me = cmp,
                    baseCls = me.baseCls,
                    tip = me.tooltips[0];
    
    
                errors = Ext.Array.from(errors);                       
    
    
                // Update CSS class and tooltip content
                if (errors.length) {
                    me.addCls(baseCls + '-invalid');
                    me.removeCls(baseCls + '-valid');
                    me.update("Form has errors");
                    tip.setDisabled(false);
                    if (!tip.rendered) {
                        tip.show();
                    }
                    tip.update(me.bin[0].apply(errors));
                } else {
                    me.addCls(baseCls + '-valid');
                    me.removeCls(baseCls + '-invalid');
                    me.update("Form is valid");
                    tip.setDisabled(true);
                    tip.hide();
                }            
            }
  3. #3
    Perfect. Please close. Thanks.
  4. #4
    Hi Chris,

    The respective changes have been committed to the 2.1 branch.

    Thank you for pointing the problem out.

Similar Threads

  1. [CLOSED] License Key registration
    By MTSI in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 11, 2012, 7:23 AM
  2. [CLOSED] TabBar Config examples in Examples Explorer not working
    By anup in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 26, 2012, 9:32 AM
  3. Replies: 7
    Last Post: Mar 22, 2012, 1:00 PM
  4. Replies: 2
    Last Post: Feb 18, 2011, 10:27 AM
  5. Icon registration and user controls
    By reverseblade in forum 1.x Help
    Replies: 3
    Last Post: May 08, 2010, 8:24 PM

Posting Permissions