Cannot get Forms WebPart with different content type working on SharePoint Site Page

Rather than having a long URL such as:

https://[MyAccount].sharepoint.com/sites/[MySite]/_layouts/15/SPListForm.aspx?PageType=4&List=[ListID]&ID=2&Web=[WebID]&RootFolder=/sites/[MySite]/Lists/Contacts

I thought to create a Site Page and use the Forms WebPart to display the list Item.

I have a list on a Site Page named ~/Contacts.aspx. Clicking an item in the list brings you to the above URL normally for a Display form I have. However, I wanted it to go to ~/Contacts/Individuals.aspx using the Forms WebPart. I created a folder for “Contacts” in Site Pages and in that folder I created a Site Page for Individuals.

The Contacts list has two content types: Contacts Individual and Contacts Organization.

When using the Form WebPart and picking Display, I cannot pick the content type. When I pick the “Query String” parameter and try ItemId or just ID it says “Unable to resolve item ID”. If I pick the “Const” parameter and enter “2” then I get the static item (what is displayed with the longer URL above).

Am I able to use the Form WebPart how I would like? If so, how can I get the Contacts Individual item to display dynamically?

Thank you in advance.

And the answer was in the Query String parameter to use item. See this link. Just a note that the documentation does not reflect that.

image

Since it’s the same list (“Contacts”), I am guessing it doesn’t matter in this situation what the content type is in that list, as all the ID’s are unique.

If there is anything I might be missing, please let me know.

Thank you for this product. :grinning_face: