Related-items Get Column Id

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

27 Apr 2018

Dear ksertkaya,
I am afraid that I will need a little more information to determine the reason for that. The code I've just tested again - it should work.
Can you, please:
1) Send me a screenshot of the form in the designer?
2) Show me where exactly and how you run the code - button, event, console, etc.
3) Are there any errors in the console after running the code?
4) Try running the following code:

Code: Select all

console.log($('.Kaza'));
$('.Kaza').find('.fd_field input').each(function(){
    console.log(this.value);
    this.value = '';
});
Cheers

ksertkaya
Posts: 87
Joined: Wed Nov 18, 2015

17 Aug 2018

Hello again :)

This is Crossite Lookup. I can't get value from these column.

SCRIPT5007: Unable to get property 'Row' of undefined or null reference

Code: Select all

alert(fd.relatedItems(0).data('ctx').ListData.Row[0].AdSoyad[0].lookupValue);
alert(fd.relatedItems(0).data('ctx').ListData.Row[0].Ad_x0020_Soyad_x003a_departman[0].lookupValue);
Screenshot_56.png
Screenshot_56.png (16.09 KiB) Viewed 1833 times
Screenshot_54.png
Screenshot_54.png (26.34 KiB) Viewed 1833 times
Screenshot_55.png
Screenshot_55.png (13.13 KiB) Viewed 1833 times

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests