I have a List (called Enquiry) with a workflow that creates a new Document in a Document Library (called Records) with the same Title and ID as the List Item’s Title and ID. To illustrate:

Item in List called “Enquiry” Title: EnquiryOne ID: 1

Workflow runs on creation of item to Create document in Records:

Title: EnquiryOne ID: 1

What I would like to be able to do is have a way of opening the Document from the Item DispForm.aspx

I have added a custom action button to my DispForm.aspx, and set it to Navigate to URL.

Is there a way of setting the URL to dynamically link to the appropriate URL or ID?

For example, by setting the URL to be:


I know that this doesn’t work, so was wondering if there is a way to open the right link using JS?

1 Answer 1


In the document library you also need to create one new column that will be lookup of Inquiry list.

How to display that document link on Display page of inquiry

Below video has complete tutorial of what you are trying to do


  • Thanks, this is perfect! Exactly what I needed
    – Sam W
    Commented Jul 17, 2019 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.