Forum Discussion
SimonH
3 years agoQrew Cadet
So instead of passing the Parent Record ID via URL parameter you want it set on the form itself?
Try modifying the line of code in the code page as follows
//change this line
const parentRid = urlParams.get('rid');
//to this
const parentRid = document.getElementById("recordid").value
You can get a bit more creative if you want to page to work either with url param or manually
------------------------------
Simon H
------------------------------