NetTalk Central

Author Topic: Can CSS respond to a clarion variable value and change the elements color?  (Read 1277 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 368
    • View Profile
    • Email
Hi
Using  NT 14.21 and C11
Can CSS capture a value change - e.g. when the Total Amount goes form $10.00 TO -$5.00 ( minus value)?
If it can, can you give some code or hints?
If it can't it probably will take javascript?
Thanks,
Ron

osquiabro

  • Hero Member
  • *****
  • Posts: 702
    • View Profile
    • Email
is possible, i use p_web.gsv('loc:css') in a field in a browse but in any field in a forms is a same concept, fill the variable with your css value and refresh the field

rjolda

  • Sr. Member
  • ****
  • Posts: 368
    • View Profile
    • Email
Thanks,
I will give that a try!  But - where do you put the css?  You have to be putting it in the app and not the custom.css file.  Does it go into css for the field itself?
Ron

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
    • Email
Try this....