Domanda

I'm development a sharepoint add-in in sharepoint online and visual studio 2017. I was used calculated fields with conditions like ">", but when I put "<" inside, I get a IDE error?

Anyone know how to escape it ?

<Formula>=IF([JanuaryGoal] < 0, "zero", "ok") </Formula>

  <FieldRefs>
    <FieldRef Name="JanuaryGoal"/>
  </FieldRefs>

Error "<" in site column calculated field formula

Thanks

È stato utile?

Soluzione

you have to use escape characters.... below is what you need.

<Formula>=IF([JanuaryGoal] &lt; 0, "zero", "ok") </Formula>

  <FieldRefs>
    <FieldRef Name="JanuaryGoal"/>
  </FieldRefs>

Ref for other special characters - https://www.advancedinstaller.com/user-guide/xml-escaped-chars.html

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top