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 4015958
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:40:55+00:00 2026-05-20T09:40:55+00:00

Ok I have a form inside a shadowbox, this thing will just not validate…

  • 0

Ok I have a form inside a shadowbox, this thing will just not validate… I have tried it a million different ways. It also lives inside a WordPress Theme which I don’t think is breaking it. Jquery is loaded in the header.

the form is pasted into a gist: http://gist.github.com/578270

Any ideas? Thanks so much, feel like I am banging my head into a wall.

  • 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-20T09:40:56+00:00Added an answer on May 20, 2026 at 9:40 am

    The trick is to use the onFinish callback function to trigger the validation for the form that is inside the Shadowbox. If you use an ID for your form like I did, shadowbox will actually create a duplicate copy of the form so you need to target the form within the shadowbox itself. I used #sb-player to do this.

    HTML Shadowbox Link

    <a href="#newsletter-signup-wrapper" class="newsletter-signup UniversLTStd-Cn">Newsletter Sign-up</a>
    

    JavaScript/jQuery

    $('a.newsletter-signup').click(function(){
        Shadowbox.open({
            width: 562,
            height: 395,
            player: 'inline',
            content: this.href,
            options: {
                onFinish: function(){
                    $('#sb-player #newsletter-signup-form').validate();
                }
            }
        });
        return false;
    });
    

    HTML Form (hidden in footer)

    <div id="newsletter-signup-wrapper">
        <div id="newsletter-signup">
            <form action="" id="newsletter-signup-form" target="_parent" method="POST">
                <div class="gform_body">
                    <ul class="gform_fields">
                        <li class="gfield">
                            <label class="gfield_label" for="first_name">First Name <span class="gfield_required">*</span></label>
                            <div class="ginput_container">
                                <input class="medium required" id="first_name" maxlength="40" name="first_name" size="20" type="text" />
                            </div>
                        </li>
                        <li class="gfield">
                            <label class="gfield_label" for="last_name">Last Name <span class="gfield_required">*</span></label>
                            <div class="ginput_container">
                                <input class="medium required" id="last_name" maxlength="80" name="last_name" size="20" type="text" />
                            </div>
                        </li>
                        <li class="gfield">
                            <label class="gfield_label" for="email">Email <span class="gfield_required">*</span></label>
                            <div class="ginput_container">
                                <input class="medium required" id="email" maxlength="80" name="email" size="20" type="text" />
                            </div>
                        </li>
                        <li class="gfield">
                            <label class="gfield_label" for="company">Company <span class="gfield_required">*</span></label>
                            <div class="ginput_container">
                                <input class="medium required" id="company" maxlength="40" name="company" size="20" type="text" />
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="gform_footer">
                    <input class="button" type="submit" name="submit" value="Sign-up!">
                </div>
            </form>
        </div>
    </div><!--// end #newsletter-signup-wrapper -->
    

    I hope this helps, I’m happy to explain in more detail if needed.

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

Sidebar

Related Questions

I have form in my page, I am using ajax.beginform(). Inside this form I
What I have is a remote form inside another remote form like this: <%=form_for
I have this form inside a table: <table id=fields> <form method=post id=accountform></form> <tbody><tr><td class=key>First
I have a Dialog with a form inside. The following code is just an
I have a form element, called metaDescription : //inside the form $description = $this
I have a Delphi form inside a DLL (I know that this restricts the
I have a form inside of a page that uses jQuery Mobile. It's just
I have a problem. I have form inside a fancybox. This form have a
I have a login FORM inside a Hidden DIV, this DIV is hidden using
I have tried to embed a form inside a Scrollbox: procedure TfrmMain.FormCreate(Sender: TObject); var

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.