Get Approval Status

Forums Classic DFFS Get Approval Status

Viewing 2 reply threads
  • Author
    Posts
    • #29499
      Ray Stopa
      Participant

      Not sure if I am missing something, but is there a way to get the document approval status in DFFS? I have tried this, but it isn’t working.

      alert(getFieldValue('_ModerationStatus'));

      Thanks!

    • #29501
      Alexander Bautz
      Keymaster

      Unfortunately the _ModerationStatus field is not show in the form and therefore you cannot access it with getFieldValue, but must use a query to get the value. Here is and example you can use in your custom js:

      var item = spjs.utility.getItemByID({
          "listName": _spPageContextInfo.pageListId,
          "id": spjs.dffs.data.thisItemID,
          "viewFields": ["ID", "_ModerationStatus"]
      });
      alert(item._ModerationStatus);

      Let me know how this works out.

      Alexander

    • #29502
      Ray Stopa
      Participant

      Thank you Alexander, that worked!

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