You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Need The Custom Ajax to be executed synchronously in logic.js

Accepted answer
edited Jul 30, 2018 7:39AM in Customer Portal 3 comments


Dear All,

Currently I'm trying to customized the widget login\LoginDialog per the requirement. I'm going to validate the username manually before the real login.

I tried to override the function _validateUsername as below,

        _validateUsername: function(username) {
            alert('username:' + username);
            //    this.parent();
            //var results = {};

            if (username.indexOf(' ') > -1)
                return RightNow.Text.sprintf(RightNow.Interface.getMessage("PCT_S_MUST_NOT_CONTAIN_SPACES_MSG"), RightNow.Interface.getMessage("USERNAME_LBL"));
            if (username.indexOf('"') > -1)
                return RightNow.Text.sprintf(RightNow.Interface.getMessage("PCT_S_CONTAIN_DOUBLE_QUOTES_MSG"), RightNow.Interface.getMessage("USERNAME_LBL"));
            if (username.indexOf("<") > -1 || username.indexOf(">") > -1)

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!