Dynamic Border Colors

Hello Group,
I would like to set certain field borders to say RED based on data from a different table. I don’t have a problem looking up the data or iterating through it. It is setting the border attribute that I’m struggling with. I have been looking but have not been able to put my finger on a solution.
Thanks for any direction you could provide.
Bill

Which application within Scriptcase are you using? It differs per application, hence this question. Also, try the developer mode of your browser. For instance, I use Chrome for tracking an appropriate hook. In Developer Mode under the tab ‘Elements’ it gives a much cleaner/simpler overview of the sourcecode, then trying to struggle your way through non-formatted sourcecode.

Once you know the class, ID, or some way of hooking into the existing system you could use a CSS selector, jQuery or even PHP method triggered by an event within Scriptcase.

Thanks for the replies!
I need to change the field’s Border color on a form application dynamically. So it needs to be triggered by the onScriptInit or onLoad events I think.
I have the ID for the field and I can do what I need on a javascript event but I need to trigger it on the form event not the field event. I hope I’m making myself clear.

nonkelmike,
I’m sorry but I don’t understand your statement "On a FORM its simple; Just change CSS according the data"?
How is this CSS applied to a field based on it’s data?
Thanks

if ({login_aanvrager}=='440000001'){
    echo'<style>.css_login_aanvrager_obj {
    border-left-width: 4px;
    border-left-color: crimson;
    border-style: solid;
    }</style>';
}else{
    echo'<style>.css_login_aanvrager_obj {
    border-left-width: 4px;
    border-left-color: green;
    border-style: solid;
    }</style>';
}

OH, that is beautiful ! I will certainly give that a try in a bit.
Thank you very much.

Works Great!
Thank both of you nonkelmike and vatologic for your responses.