Hi,
The content type name is not accessible directly in NewForm, but if you are using SP 2013 / 2016 you can add this HTML to the “Show this text above the tabs”:
<div id="contentTypeName"></div>
And then add this to your Custom JS
jQuery.ajax({
url: _spPageContextInfo.webServerRelativeUrl + "/_api/web/lists/getById('"+_spPageContextInfo.pageListId+"')/ContentTypes('"+GetUrlKeyValue("ContentTypeId")+"')",
method: "GET",
headers: {
"accept": "application/json; odata=verbose",
"content-type": "application/jsom;odata=verbose",
"X-RequestDigest": document.getElementById("__REQUESTDIGEST").value
},
success: function (data) {
jQuery("#contentTypeName").html(data.d.Name);
},
error: function (err) {
// console.log(err);
}
});
Alexander