2013-10-16 38 views
0

此表單在表單操作爲「提交」時起作用。但是,在將其自定義爲Salesforce Web到Lead時,不會顯示「表單提交已成功」的腳本。頁面腳本不能用Salesforce Web到導致代碼執行。

此外,在這裏提交後重定向網站的代碼不起作用。我不是PHP/Java專家,我不知道發生了什麼足以理解爲什麼它不起作用。

見下文。來自Salesforce的編輯私人信息。

<div class="padpage padtop"> 
    <h1>Let Us Call You</h1> 
</div> 
<!--end padpage--> 

<div class="cutContainer moreUpperMargin"> 
    <span class="cutTop"></span> 
    <span class="cutBottom"></span> 

    <div class="ui-widget successMessage"> 
     <div class="ui-state-highlight ui-corner-all"> 
      <p><span class="ui-icon ui-icon-info" style=""></span> 
      <strong>Success!</strong> Your mail has been sent.</p> 
     </div> 
    </div> 

    <h4> Write to us </h4> 

    <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST" /> 
     <input type=hidden name="oid" value="000000000000000"> 
     <input type=hidden name="retURL" value="http://www.xxxxxxxx.com"> 
     <input type=hidden name="company" value="Mobile Lead"> 

     <!-- A bunch of Fields.... --> 


     <input type="submit" class="button buttonStrong right" value="Send"   name="buttonSubmit" value="submit"> 
     <div class="clearfix"></div> 
    </form>   

</div> 
<!--end cut container--> 

回答

0

您能更清楚地瞭解這個問題嗎?如果您想使用Salesforce標準功能,並且可能不會編寫任何自定義PHP/Javascript程序,爲什麼不創建另一個包含消息「表單提交成功」的網頁,並通過retURL將用戶引導至該頁面領域提交後?或者,如果您使用流行的CMS,請嘗試其中一個插件。對於Wordpress和Drupal來說存在好的。

http://wordpress.org/plugins/salesforce-wordpress-to-lead/ https://drupal.org/project/sfweb2lead_webform