Content Type Lookup with cross-site column
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Assign a CSS-class to the Plain Text control, say 'content-type-value'. Then use it in JS-code to get the content:
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()
- Mostafa Mohamed
- Posts: 6
- Joined: Tue Jul 26, 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.
- Mostafa Mohamed
- Posts: 6
- Joined: Tue Jul 26, 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.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
On a new form you should retrieve the content type from the query-string:
Code: Select all
GetUrlKeyValue('ContentTypeId')
-
- Information
-
Who is online
Users browsing this forum: No registered users and 5 guests