Hi Team,
Problem
1. I have form once it will be submitted at the back end workflows runs which assign the owner to them which takes hardly 5 seconds but once the form submit it automically redirect the user on new page where I want to show the meetint link of the new assigned owner calender but it showing the wrong calender with below code
{{ contact.hubspot_owner_id.meetings_link }}
<div id=“meeting{{name}}” style=“display:none;”>
<!-- <div class=“meetings-iframe-container” id=“contactMeeting” data-src=“”>\ </div> -->
{#<div class=“meetings-iframe-container” data-src=“{{ contact.hubspot_owner_id.meetings_link }}?embed=true”>\ </div>#}
<iframe class=“meetings-iframe-container” id=“contactMeeting” src=“”></iframe>
<script type=“text/javascript” src=“https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js” defer id=“meetingsScript”></script>
<!-- <script type=“text/javascript” src=“https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js”></script> -->
</div>
<script>
$(function() {
var contactMeet = document.getElementById(‘contactMeeting’);
setTimeout(() => {
console.log(`{{ contact.hubspot_owner_id.meetings_link }}` , ‘new’);
window.location.href += ‘#contactMeeting’;
contactMeet.setAttribute(‘src’,`{{ contact.hubspot_owner_id.meetings_link }}?embed=true`);
console.log(‘10 second’)
}, “10000”);
});
</script>