Use collection value as URL parameter

Does anyone know if it is possible to add a parameter from a collection to a URL/Link?

My scenario is that I have a collection page and on that page I have a contact us link (to a contact form). I want to be able to pass that collection page (in this case the child’s name from the collection) to the contact for to auto-fill a value on that form.

Specific Page (any child page): (Inquire about button)
Contact Us Page:

Share link:


Yes, should be possible using custom code.

Here is a related question Passing collection name to form field