Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6096165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:53:42+00:00 2026-05-23T12:53:42+00:00

The javascript console keeps showing Not a custom field name: username when its supposed

  • 0

The javascript console keeps showing “Not a custom field name: username” when its supposed to show an error for the username field. There clearly is a field named “username”. I tried changing it to some other name everywhere, but it still didn’t work.
Any idea what is going on?

<fb:registration redirect-uri="<?=$pageurl?>" 
  fields="[{'name':'name'},{'name':'email'},{'name':'location'},{'name':'username','description':'Username','type':'text'},{'name':'password','view':'not_prefilled'},{'name':'captcha','view':'not_prefilled'}]"
  onvalidate="validate" width="400"></fb:registration> 

and my validate function…

function validate(form,cb)
{
    console.dir(form);  
    $.get('/api/?f=user_email_present&username='+form.username+"&email="+form.email,function(data){
        console.log(data);
        if(data.username==false)
        {
            cb();
        }
        else 
        {
            if(data.username=='username')
                cb({username: 'That username is already taken. Please try another username.'});
            else if(data.username=='usernamelength')
                cb({username: 'The username cannot exceed 20 characters in length.'});

        }
    });
}

I can’t be too sure, but I think I remember all this working a while back. Took me by complete shock when we are 2 days from launch.

Update: I scrapped out asynchronous validation and used the other validation. It still throws the same error!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:53:43+00:00Added an answer on May 23, 2026 at 12:53 pm

    After spending the better part of two days, I managed to figure out what is going on. It is a silly but potent bug on facebook’s end. If the width of the widget is too less, it gives this error. Increasing the width to 800px fixed it promptly. Probably they don’t render the proper error fields when the width is too small.
    I have filed a bug report: https://github.com/facebook/connect-js/issues/275
    If you guys can give it a shot and comment on my bug report so that they can take action immediately, it would be awesome.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is my javascript code snippet. Its not running as expected, please help me
Is there a one-liner I could execute in a javascript console to download and
Excerpt from my JavaScript console: > 0 in [1, 2] true Why?
How do I print debug messages in the Google Chrome JavaScript Console? Please note
I’ve only been trying it in Firefox’s JavaScript console, but neither of the following
I have a bunch of console.log() calls in my JavaScript. Should I comment them
I'm in javascript, running this in the console d = new Date(); d.setMonth(1); d.setFullYear(2009);
I want to log to the console when I'm using un-minimized JavaScript files. Comments
Firebug is certainly a wonderful tool for javascript debugging; I use console.log() extensively. I
I have the following code, and the javascript console in chrome says Can't read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.