0

What is considered an empty SharePoint list item when doing if else condition via JavaScript? "", null, or something else?

3
  • What field type are you checking? Commented Oct 16, 2019 at 18:34
  • @michael-colbs, Hello, string type
    – adams-j
    Commented Oct 16, 2019 at 18:36
  • if (listitem["field"]) only this should work Commented Oct 16, 2019 at 18:41

1 Answer 1

0

I just did an alert to show what the empty list item was showing. It showed null. SO I i changed it to

if (whatever("whatever")==="" || whatever("whatever")=null)...

it now shows what I want to show.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.