Content Type Lookup with cross-site column

Discussions about Cross-site Lookup
User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

28 Jul 2016

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()

User avatar
Mostafa Mohamed
Posts: 6
Joined: Tue Jul 26, 2016

28 Jul 2016

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.

User avatar
Mostafa Mohamed
Posts: 6
Joined: Tue Jul 26, 2016

03 Aug 2016

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

03 Aug 2016

On a new form you should retrieve the content type from the query-string:

Code: Select all

GetUrlKeyValue('ContentTypeId')

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests