NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Can CSS respond to a clarion variable value and change the elements color?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Can CSS respond to a clarion variable value and change the elements color? (Read 1277 times)
rjolda
Sr. Member
Posts: 368
Can CSS respond to a clarion variable value and change the elements color?
«
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
Logged
osquiabro
Hero Member
Posts: 702
Re: Can CSS respond to a clarion variable value and change the elements color?
«
Reply #1 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
Logged
rjolda
Sr. Member
Posts: 368
Re: Can CSS respond to a clarion variable value and change the elements color?
«
Reply #2 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
Logged
Niels Larsen
Sr. Member
Posts: 459
Re: Can CSS respond to a clarion variable value and change the elements color?
«
Reply #3 on:
May 30, 2025, 08:52:22 PM »
Try this....
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Can CSS respond to a clarion variable value and change the elements color?