
Angebot anfordern, Kontakt aufnehmen
Kontaktieren Sie uns
Haben Sie eine Frage an Image Access? Wir sind gerne für Sie da!
Haben Sie eine Frage an Image Access? Wir sind gerne für Sie da!
jQuery(document).ready(function($) {
// Function to get URL parameters by name
function getUrlParameter(sParam) {
var sPageURL = window.location.search.substring(1), // Get the query string part of the URL
sURLVariables = sPageURL.split('&'), // Split the query string into individual parameters
sParameterName,
i;
// Loop through each parameter to find the one matching sParam
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('='); // Split parameter name and value
// If the parameter name matches sParam, return the decoded value
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
}
}
return false; // Return false if the parameter is not found
}
// Define the form fields you want to populate from URL parameters, these should match the Field ID you set in the module settings
var fields = ['reason'];
// Get all URL parameters
var urlParams = new URLSearchParams(window.location.search);
// Loop through each URL parameter
urlParams.forEach((value, key) => {
if (fields.includes(key)) {
$('#' + key).val(value); // Set the form field's value if it matches a field ID
}
});
});
