Which is your favourite? Idk if I could pick one they’re all so awesome haha.
Which is your favourite? Idk if I could pick one they’re all so awesome haha.
Text Element Content:
{
"name" : "Patrick",
"job" : "wizard"
}
<script>
(function() {
const data = JSON.parse(document.currentScript.parentNode.previousElementSibling.textContent);
console.log(`${data.name} is a ${data.job}!`);
})();
</script>
Text Element Content:
{
"name" : "Patrick",
"job" : "wizard"
}
<script>
(function() {
const data = JSON.parse(document.currentScript.parentNode.previousElementSibling.textContent);
console.log(`${data.name} is a ${data.job}!`);
})();
</script>
Then in your code, you can parse it and use the full schema:
Then in your code, you can parse it and use the full schema:
<script>
(function() {
// above function goes inside here
})();
</script>
<script>
(function() {
// above function goes inside here
})();
</script>
const embed = document.currentScript.parentElement;
const name = embed.getAttribute('prop-name');
console.log(`Hello ${name}!`)
const embed = document.currentScript.parentElement;
const name = embed.getAttribute('prop-name');
console.log(`Hello ${name}!`)
Other things I’ve seen:
• Mislabelling the email id field so that the validation will fail when a bot autofills
• A time lock — most forms filled within 3s of page load are fake!
Other things I’ve seen:
• Mislabelling the email id field so that the validation will fail when a bot autofills
• A time lock — most forms filled within 3s of page load are fake!