Answer the question
In order to leave comments, you need to log in
How to send page title and url in feedback form?
How to send a feedback form with the data from the form, also the title of the form and the url of the page from which it was sent
Answer the question
In order to leave comments, you need to log in
you can add any hidden fields to the form using the html input tag with the hidden type
<input type="hidden" name="url" value="тут-url-страницы">
<input type="hidden" name="form-title" value="тут-название-формы">
Create a hidden field on a form
<input class="some-class" type="hidden" name="url">
// jQuery
$(function ($) {
$('.some-class').val(window.location.href);
});
// js
document.addEventListener("DOMContentLoaded", () => {
let urlInput = document.querySelector('.some-class');
urlInput.value = window.location.href;
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question