"Author" value

Forums Dynamic Forms for SharePoint "Author" value

This topic contains 1 reply, has 2 voices, and was last updated by  Alexander Bautz 3 weeks, 1 day ago.

  • Author
    Posts
  • #17897

    Kasey
    Participant

    We are trying to compare the value of a people picker to the Author or Created By. I know you don’t have an existing trigger for that so we were going to use custom js. Unfortunately getFieldValue(“Author”) doesn’t return a value. Is there another built in function you have that would return the Author so we could compare against the value of a people picker?

  • #17982

    Alexander Bautz
    Keymaster

    Sorry for the late reply – you can compare with “Author” and “Editor” in this trigger (see attachment).

    If you want to use Custom JS you can find the author like this:

    // Name
    spjs.dffs.beforeProperties.Author
    ["Alexander Bautz"]
    // ID
    spjs.dffs.beforeProperties.Author_ID
    ["12"]

    Please note that both values are in fact arrays so you must convert it to string if you plan to use it for comparing with another variable.

    Alexander

You must be logged in to reply to this topic.