Getting Current Item and Field

Forums SPJS-Utility Getting Current Item and Field

Viewing 2 reply threads
  • Author
    • #34137
      Pete Schmale

      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

      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");


    • #34141
      Pete Schmale

      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.