change color of a datalist fields text

oscar ward shared this question 11 months ago
Answered

Hi, Ive been trying to have a data lists field value checked and if its below 0 have it turn red. and as long as the value is positive it should display green.


Ive added a on data change event to the row using the event to determine if the value is less than 0. what am I missing...ive tried the function on the field itself..but just cant figure it out...


so


if the fields value is say -13 i want it red but if its 13 it should display green

Comments (1)

photo
1

Dear Oscar,


Do you have an example .vp file of what you're describing so we can take a look? You can attach it in a .rar format, or upload it to a file sharing service such as Dropbox, and attach the link to it here. +


Best,