Getting Current Item and Field

Home Forums SPJS-Utility Getting Current Item and Field

Viewing 2 reply threads
  • Author
    Posts
    • #34137
      Pete Schmale
      Participant

        I have a really basic question. I have a page that is showing the current item in the SharePoint list. I need to be able to access a field property in the item to test if it is true or false. Can you please help me with code that shows the rudiments of getting the current item, and a field in the current item. Thanks.

      • #34139
        Alexander Bautz
        Keymaster

          Hi,
          If you are running the code when viewing or editing the item you can use this snippet to get the field value:

          var val = getFieldValue("your_field_name");
          alert(val);

          Alexander

        • #34141
          Pete Schmale
          Participant

            Thanks so much for the quick response! I’ll give it a try.

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.