Add name and email parameters to the Popup Text embed code using Javascript

Comments

1 comment

  • Official comment
    Avatar
    Body.im

    I figured it out.

    There's a setAttribute function that allowed me to set the onclick attribute rather than trying to manipulate the existing onclick attribute I deleted it and wrote the new one 

    document.getElementById("flowResistanceLink").setAttribute('onclick', "Calendly.initPopupWidget({url: '" + url_with_appended_name_and_email + "'});return false;")

    hopefully this helps someone!

    Comment actions Permalink

Please sign in to leave a comment.