How can I get content type and the content html of display form of that content type while I still in the SharePoint list? ( It’s mean I’m not in the page display form).
Hello,
If you are looking for GUID of the content type, then I suggest that you open that in designer and go to “Content types” section. Click on the default content type and you can get the details.
After determining the content type, go the “Forms” section and select the default dispform.aspx to get the code of display form.
Hope the information helps!