WordPress.org

Ready to get started?Download WordPress

Forums

Need way to display hidden div on click of Form button (3 posts)

  1. Freelancealot
    Member
    Posted 3 years ago #

    Hi,

    I'm trying to get a form together that submits to a third-party api (CapsuleCRM) whilst keeping the user on the page and revealing a BUY NOW button that will take them through to Paypal. There also needs to be some validation to make sure all the fields +checkbox are filled in.

    The process:

    First Name:
    Last Name:
    Email:
    Agree to terms (checkbox) [on tick sends data to CapsuleCRM and reveals Paypal button below]

    >> Hidden until checkbox ticked

    <div style="display: none;">BUY NOW (Paypal button)</div>

    At the moment I've got this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    This all works in that when you tick the checkbox the BUY Now text is revealed, but then you get taken to the https url. I need the user to stay put so they can click the BUY Now button.

    I'm also missing the validation stage.

    Can anyone show me how to get this working.

    Cheers,

    Tracy

  2. Freelancealot
    Member
    Posted 3 years ago #

    Anyone?

  3. Freelancealot
    Member
    Posted 3 years ago #

    Not sure where this code is duplicated in WordPress.org forums. Sorry about that.

    Can anyone help?

    If you need the code, please let me know.

    Cheers,

    Tracy

Topic Closed

This topic has been closed to new replies.

About this Topic