How do I update automatic text after a form is filled on Landing page? I have tried to update the originally template but it is still showing an older message we want to update.
<div class="row">
<div class="col-md-12 mt-3">
<div class="mktoForm mb-4 p-1" id="primaryForm" mktoName="Primary Form" style="min-height:50px;"></div>
<script>
MktoForms2.whenReady(function (form){
//Add an onSuccess handler
form.onSuccess(function(values, followUpUrl){
//get the form's jQuery element and hide it
form.getFormElem().hide();
document.getElementById('confirmform').style.display = 'block';
//return false to prevent the submission handler from taking the lead to the follow up url.
return false;
});
});
</script>
<div id="confirmform" style="display:none;">
<div class="mktoText" id="Section_G_ThankYou_Text" mktoName="Section_G_ThankYou_Edit">
<p><strong>Thank you for registering for the Remote Learning Webinar!</strong></p>
<p><strong>We look forward to you joing us on Tuesday April 7 2020 at 2pm.</strong></p>
<p><strong>If you have any questions please feel free to email us at marketing@asi.com.au OR call us directly on 1300 368 010</strong></p>
</div>
</div>
</div>
</div>
@Michael_Osborne can you check responses on your thread, please?
At a glance, the code looks right, but like Sanford said it's hard to be sure until it's in the code-view.
If re-approving the LP doesn't work, here's a few other maybes...
If you're using the same page to test this, there is a chance that the script got cached or something like that and it's not loading the new version w/ the updated text. If this is the case, you can try opening the page in Incognito mode or adding a trailing query string value to your URL to emulate a new page load -- sometimes doing a "hard-refresh" (Ctrl+f5 on PC) in the browser will set this straight as well. If this code lives on your template, it's probably not a caching issue, but it might be worth trying a few simple things like making a new page or refreshing your browser and/or Marketo session.
If you're able to share a link to a live example that'd also be helpful to see what the output is here, maybe there's something that'll give a clue about what's going on behind the scenes.
You have to reapprove the page after reapproving the template.
Also, please use the syntax highlighter when posting code, it's not readable otherwise.