Font Color Question in Calculation

184
1
10-07-2022 06:41 AM
ArmstKP
Occasional Contributor III

I have a calculation that I want to return as red, but I receive an error.  I thought the syntax is correct, but I guess not.  What am I missing?

 

<font color="red">int(${ValidX}) + int(${ValidY})</font>

0 Kudos
1 Reply
DougBrowning
MVP Esteemed Contributor

Take a look at this post.  I would do a second field as this show otherwise that html will be in your data forever.

https://community.esri.com/t5/arcgis-survey123-questions/survey123-change-text-color-for-answer/td-p...

I am also not sure you can use int since it is a string you are trying to make.  Leave it or convert to string actually.

If you want it right by the question check out my post on using emojis.  https://community.esri.com/t5/arcgis-survey123-documents/how-to-simulate-instant-data-checking-using... 

Hope that helps