NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on May 29, 2025, 06:58:07 AM

Title: Can CSS respond to a clarion variable value and change the elements color?
Post by: rjolda on May 29, 2025, 06:58:07 AM
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
Title: Re: Can CSS respond to a clarion variable value and change the elements color?
Post by: osquiabro on May 30, 2025, 03:54:41 AM
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
Title: Re: Can CSS respond to a clarion variable value and change the elements color?
Post by: rjolda on May 30, 2025, 01:42:50 PM
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
Title: Re: Can CSS respond to a clarion variable value and change the elements color?
Post by: Niels Larsen on May 30, 2025, 08:52:22 PM
Try this....