Hi @Mikello ,
I modify the code snippet in the attachment, please check it.
Please replace the url in GetParameterValues function with yours so that it will work.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
For a DispForm.aspx like below, how can I get an ID in Javascript (I'm trying to pass a field value using the ID). Attached is the code where I am trying to get var selectedId
https://server-name/subsite/Lists/listname/DispForm.aspx?ID=20848