Pass person field using spjs.utility.addItem

Home Forums SPJS-Utility Pass person field using spjs.utility.addItem

Viewing 1 reply thread
  • Author
    Posts
    • #34381
      Mitchell T
      Participant

        I am trying to create a new item in a list and pass a value in a ‘person’ field (SPFieldUser is the Field Type) during new item creation (the person field is already filled-in in the current item):

        
        
        spjs.utility.addItem({
                'listName' : _spPageContextInfo.pageListId,
                'data' : {
                    'Title' : 'newItemTitle',
                    'personFieldFIN' : getFieldValue('personFieldFIN')
                }
        })

        I’ve tried a few things, but have not been able to get this working. What should be put as the data for the person field?

      • #34383
        Mitchell T
        Participant
      Viewing 1 reply thread
      • You must be logged in to reply to this topic.