Hi im using following code to get the query string value in a form field:
<script>
var url = window.location.search;
url = url.replace("?Id=", ''); // remove the ?
</script>
<script>document.write("<input name='Id' data-constraints='@Required(groups=[customer])' id='Id' type='text' value='"+url+"' />");</script>
if i visit [this is not a link] (http://mydomain.com/?Id=987) it records the Id in field but when more parameters are included it also records in the field, i want only first or any specific query string parameter to be added in form field?