2016-01-26 45 views
0

我想將當前頁面的URL分配給隱藏的窗體字段。如何將當前頁面的URL分配給隱藏字段

有沒有辦法做到這一點?

的隱藏字段的自動填充行爲,只能從下面得到的值:

默認值,URL參數,Cookie值,來源參數

但是我使用其他網址,因此不會有參數,但想整個URL

感謝保存到隱藏字段提前

總和

回答

0

這是你如何可以的Marketo表單上隱藏字段的值:

MktoForms2.loadForm("//app-sjst.marketo.com", "785-UHP-775", 1057, function (form) { 
    // Set values for the hidden fields, "userIsAwesome" and "enrollDate" 
    // Note that these fields were configured in the form editor as hidden fields already 
    form.vals({"userIsAwesome":"true", "enrollDate":"2014-01-01"}); 
}); 

見例:http://developers.marketo.com/assets/Forms2DevExamples/example7.html

來源:http://developers.marketo.com/documentation/websites/forms-2-0/

+0

感謝,會嘗試, – sumpun

相關問題