Form reply, in-page w/html etc.
We've used a simple javascript on our landing pages that, if turned on, keeps a user on the landing page and displays a message.
The message itself is just a mktoString metatag in the landing page template, so that we can change the message.
We've run into a few occasions, where we wanted more than just a message - html, a link. a way to reload the page. But I don't believe those are feasible using just a mktoString Token, which I don't believe can accept html, and wouldn't be efficient if it could I suspect.
Any suggestions? How have other people solved this problem?
For reference, if relevant. the javascript:
<script>
if (${formsendrule}) {
MktoForms2.whenReady(function (form){
form.onSuccess(function(values, followUpUrl){
form.getFormElem().hide();
document.getElementById('confirmform').style.visibility = 'visible';
return false;
});
});
};
</script>
Metatag:
<meta class="mktoString" id="formmessage" mktoName="Form fill reply" default="Thank you! We will be in touch soon.">
Metatag location:
<div id="confirmform" style="visibility:hidden;z-index:15;width:100%;height:100%;margin-top:10px;padding:10px;"><p><strong>${formmessage}</strong></p></div>