Page 2 of 2

Re: Content Type Lookup with cross-site column

Posted: 28 Jul 2016
by Dmitry Kozlov
Hi,

Assign a CSS-class to the Plain Text control, say 'content-type-value'. Then use it in JS-code to get the content:

Code: Select all

$('.content-type-value').text()

Re: Content Type Lookup with cross-site column

Posted: 28 Jul 2016
by Mostafa Mohamed
I followed your instructions, and i made an alert to test the value, however the returned value is blank in the alert box, please advice.

Re: Content Type Lookup with cross-site column

Posted: 03 Aug 2016
by Mostafa Mohamed
When i try to retrieve the value on new form it gives the following value "ContentType Field Value", however on the Edit form after the item is saved, it retrieves the correct content type. My problem is i want to be able to get the content type name correctly on the new form so as to set conditions based on the returned value. Please advice.

Re: Content Type Lookup with cross-site column

Posted: 03 Aug 2016
by Dmitry Kozlov
On a new form you should retrieve the content type from the query-string:

Code: Select all

GetUrlKeyValue('ContentTypeId')