0

現在のページの URL を非表示のフォーム フィールドに割り当てようとしています。

これを行う方法はありますか?

非表示フィールドの自動入力動作については、次のものからのみ値を取得できます。

デフォルト値、URL パラメータ、Cookie 値、リファラー パラメータ

ただし、残りの URL を使用しているため、パラメーターはありませんが、URL 全体を隠しフィールドに保存したいと考えています。

前もって感謝します

4

1 に答える 1

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/

于 2016-01-26T15:55:25.140 に答える