dynamically change the meeting link

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>

Hi, @ramanverma2005 :waving_hand: Thanks for the interesting question. It sounds like we’re encountering a race condition. I don’t have a specific documented solution for your project.

Let’s invite some of our community members to the converstaion — hey @albertsg @MatthiasWeber have you tried anything similar? Or do you have any creative thinking on how @ramanverma2005 might approach this from a different angle?

Thank you very much for taking a look! — Jaycee