I need to get lookup values, but i cannot use SharePoint Designer. I tried to use the solution proposed there, but it does not work with document libraries. It raises an error:

"Unable to get property 'Row' of undefined or null reference"

Maybe, it's different property for document library, not ListData?

  • You need some pretty good JavaScript skills to get this right.. and.. all those tricks no longer work in the New Experience Document Library. Given your question my advice is not to use it. Aug 23 '16 at 17:19

You cannot use lookup fields in Column and List \ Library validation or Calculated field , You will have to use

  • The object model to create a validation.

  • Or change Lookup field to Choice Field

  • Or Javascript Validation as something like this based on your formula

<script type="text/javascript">
    function PreSaveAction() {
        var amount= document.getElementById("Lookup Field ID");
        if (amount.val() > 1000) {
            return false;
        return true;
  • Not a similar thread...You are referencing the exact same link as OP referenced. Aug 23 '16 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.