Monday, July 11, 2022
HomeWordPress Developmenthtml - Use Mail-Tag from Contac Kind 7 in a script

html – Use Mail-Tag from Contac Kind 7 in a script


Good day i take advantage of Contact kind 7 to ship an e mail with json format contained in the physique we have to substitute each ” contained in the mailtag. We got here up this this answer however we cant go [Presentazione] that’s our variable kind CF7 to the HTML script. Even one thing easy as “whats up” wont show. If i set, for instance, var Current = "whats up"; it’ll work. Any suggestion?

<html>
<head>
<script>
var Current="[Presentazione]";
Current = Current.substitute(/[“”’"]+/g, '’');

operate docWrite(variable) {
    doc.write(variable);
}

</script>
  </head>

<physique>
<p>
{"candidatura":{<br/>
 "nome" : "[firstname]",<br/>
 "posizione" : "[Posizioni]",<br/>
"titolo" : "[Titolo]",<br/>
"e mail" : "[email-765]",<br/>
"Presentazione" : "<script>docWrite(Current)</script>"<br/>
}}

</p>
  </physique>
</html>

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments