URL parameters in form fields do not work in CMS based forms

Hello everyone,

I have a product offer from my CMS database which I make bookable on this page: https://www.symworking.eco/appanwendungen/inklusivangebote-app?uuid=123465&name23=test

The idea is to pass by URL ID and name parameters, so that these fields are prefilled in my form (currently visible fields, for checking).

To use the parameters, I use the following script in custom html:

<script>
function getParam(name) {
  name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
  var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
  results = regex.exec(location.search);
  return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
var Webflow = Webflow || [];
Webflow.push(function() {
    $('#uuid').val(getParam('uuid'));
    $('#name23').val(getParam('name23'));
});
</script>

This works perfectly for the first product element or the first form, the other forms unfortunately have empty fields, as you can see when you open the link.

However, I have only created one form, as it is created from the CMS element.

Does anyone have any idea how I can proceed?

My idea was to use x-value, but unfortunately I can’t get the URL parameters into it. If there is a solution here, I would of course also be pleased.