wordpress のカスタムフィールドで下記のように自作フォーム(salesforceのアクションを利用)していますメール飛ばないです。誰か教えてくださいませ!
下記カスタムフィールドにてフォームの作成:
<form action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST" > <input type="hidden" name="oid" value="00Dxxxxxxxxx"> <input type="hidden" name="retURL" value="{$retURL}"> <div id="contact-form"> <table class="contact-form"> 省略.. </table> <input type="submit" name="submit" id="submit" value="送信する"> </div> </form>
下記はphpファイルです page-infomation.php
<div class="form-item"> <?php //wordpressから読み取り $sf = get_field('information_salesforce', 'option'); // $retUrl = get_field('returl'); $retUrl = "http://example.com/information/complet/"; $sf = str_replace('{$retURL}', $retUrl, $sf); //LPのURL $lp_url = get_permalink(); $sf = str_replace('{$00N0K00000xxxx}', $lp_url, $sf); ?> <div class="grid is-form-style-2"> <?php echo $sf; ?> </div> </div>
あなたの回答
tips
プレビュー