Frequently asked questions


← TO THE LIST OF QUESTIONS

How do I fill the form fields with the UTM parameters data?

Examples below require knowledge of Javascript and CSS. Tilda Customer Support does not assist in code-related questions.

Add a T123 block from the “Other” category and insert the following code:

<script type="text/javascript">
var url = new URL(window.location.href);
var params = new URLSearchParams(url.search.slice(1));
for(var key of params.keys()) {
var content = params.get(key);
if (content != undefined && content != "") {
$("[name='" + key + "']").val(content);
}
}

/* Если в ваших полях есть текстовые подсказки, то обязательно добавьте код ниже */
$(document).ready(function() {
setTimeout(function(){
$('input,textarea').focus();
}, 500);
});
</script>

Was this answer helpful?
No
Yes




Report abuse
If you believe that any website made on Tilda is violating your rights, file a compliant by filling out this form
How to contact our support
To find out more about the platform features, use the feedback form in your Tilda account, or contact us via email team@tilda.cc
Accounting docs
To get the supporting documentation and proof of payment, send your request to docs@tilda.cc
Made on
Tilda