[Solved] Passing javascript variable to Calendly embed

  • Thread starter Erkhes Mungunshagai
  • Start date
E

Erkhes Mungunshagai

Guest
Erkhes Mungunshagai Asks: Passing javascript variable to Calendly embed
I'm pre populating a Calendly embed fields with a value that is using an innerText property. However, the Calendly fields are not getting filled and the browser is throwing an error in multiple scenarios.


  1. When the input parent wrapper ('.form-grid__wrapper') flexbox direction is set to column the only 1 field is getting filled on the Calendly embed and throwing this error (GET https://connect.facebook.net/en_US/fbevents.js net::ERR_BLOCKED_BY_CLIENT).


  2. Wheres when the parent wrapper flexbox direction is set to row none of the Calendly fields are getting the value.

The JS code pre populating the embed.

Code:
<!-- Calendly inline widget begin -->
<script>
const typeOptions = [...document.querySelectorAll('.consultation-slider__content')]
const type = [...document.querySelectorAll('.book-grid__content')]
const submit = document.getElementById('submit');

//Type of apppointment the user has chosen and moves the slider
var chosenType = "";
for (var i = 0; i < type.length; i++) {
    type[i].onclick = e => {
        chosenType = e.target.innerText;
    }
}

//Type of product the user chosen and moves the slider 
var chosenProduct = "";
for (var i = 0; i < typeOptions.length; i++) {
    typeOptions[i].onclick = e => {
        chosenProduct = e.target.innerText;
    }
}

submit.addEventListener('click', () => {
    Calendly.initInlineWidget({
        url: 'https://calendly.com/eric-910?hide_gdpr_banner=1',
        parentElement: document.getElementById('calendly'),
        prefill: {
          name: "",
          email: "",
          customAnswers: {
            a1: chosenType,
            a2: chosenProduct,
          }
        }
   });
})

</script>

Please see the issue here in the multi step slider "Book consultation form".

Book consultation

Also, from the browser extention tab I can see that the adblock ads are increasing when I load the Calendly embed so I have disabled my adblock to see if it's working but ended up facing the same issue again.

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, solveforum.
 

Recent Threads

Lost medical letter a few days ago in weird circumstances... :(

  • Adela Pisarevsky
  • Main forum
  • Replies: 0
Adela Pisarevsky Asks: Lost medical letter a few days ago in weird circumstances... :(
[My Computer: Win.10; 2016 MS Microsoft; Lenovo Laptop;]

In the process of highlighting a letter in MS Outlook to copy it...suddenly pffffed! Disappeared! Leaving behind only the subject line: “Report to Dr. XX”. I immediately used the Undo, didn’t work! Then searched just about everywhere in and out of OneDrive and all my folders and subfolders by "Find", then one by one! And all I found was only the subject line with an empty body, and saw the same thing within my Personal Vault in OneDrive.

This is a most important medical letter. I was working on it in the Draft folder for couple of weeks to perfect it, which means it was automatically saved in Draft by Outlook, yet not there!

I hope someone here could tell me what else to do to find it. I don't know how to search the hard drive as I'm a beginner...or I did search it without knowing it was a HD.

I anticipate my BIG THANKS for any help to find this letter for me! :)

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

VMWare Exsi 6 licence key (2023)

  • Andrew Bao-Viet Nguyen
  • Main forum
  • Replies: 0
Andrew Bao-Viet Nguyen Asks: VMWare Exsi 6 licence key (2023)
My free trial of VMware exsi 6 just expired. When I try to go the vmware website for a free key, it redirects me the vsphere 7.0. Does anyone have a solution for a licensing key for vmware exsi 6?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

Location of WSL $Home directory (in Windows)

Martin Asks: Location of WSL $Home directory (in Windows)

What is the Windows location of the $HOME directory in WSL?​


i.e. What address can I type in Windows Explorer to get to the $HOME directory in my WSL installation.
... I created a test folder and then tried find this in command prompt but it didn't show up 🤔

enter image description here

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

What's the difference between apt full-upgrade and apt upgrade when this site says to use both commands?

Neo Asks: What's the difference between apt full-upgrade and apt upgrade when this site says to use both commands?
This guide says to use both commands before installing stuff. Is it true that I should use both commands? Both commands install packages right?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

How to create clickable hyperlinks in a skype message?

KawaiKx Asks: How to create clickable hyperlinks in a skype message?
I am wondering if there is a way to send clickable hyperlinks in Skype messages.

I tried this:

Code:
<a href=http://www.example.com">click here</a>

but it didn't turn into a link.

Is there some way of doing this??

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

AI Kredit Customer Care Number {+91}-8260061863=834-683-9852.Contact Now Just

  • Sumit Kumar
  • Main forum
  • Replies: 0
Sumit Kumar Asks: AI Kredit Customer Care Number {+91}-8260061863=834-683-9852.Contact Now Just
AI Kredit Customer Care Number {+91}-8260061863=834-683-9852.Contact Now JustAI Kredit Customer Care Number {+91}-8260061863=834-683-9852.Contact Now JustAI Kredit Customer Care Number {+91}-8260061863=834-683-9852.Contact Now JustAI Kredit Customer Care Number {+91}-8260061863=834-683-9852.Contact Now Just

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

Quick Money Loan .CUSTOMER. Care Helpline Number (91) 9080254157}{8927987617

  • Raju Kumar
  • Main forum
  • Replies: 0
Raju Kumar Asks: Quick Money Loan .CUSTOMER. Care Helpline Number (91) 9080254157}{8927987617
Quick Money Loan .CUSTOMER. Care Helpline Number (91) 9080254157}{8927987617]-[8790629534Quick Money Loan .CUSTOMER. Care Helpline Number (91) 9080254157}{8927987617]-[8790629534Quick Money Loan .CUSTOMER. Care Helpline Number (91) 9080254157}{8927987617]-[8790629534Quick Money Loan .CUSTOMER. Care Helpline Number (91) 9080254157}{8927987617]-[8790629534Quick Money Loan .CUSTOMER. Care Helpline Number (91) 9080254157}{8927987617]-[8790629534Quick Money Loan .CUSTOMER. Care Helpline Number (91) 9080254157}{8927987617]-[8790629534

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.
Top