Conditional HTML Status Background Color

Feb 13, 2007 2 Replies

I've asked this before and got no response. Figured I might try again...



I want to have the background color of the HTML Status Bar change when a customer has a negative credit limit.



Logically, it would go something like this: CreditLimit < 0 HTML Status Bar font = black & background color = red Normal HTML Status Bar



I can successfully declare the variable CreditLimit and set it with this statement: CreditLimit = QSRules.Transaction.Customer.CreditLimit



I can change the background color & font without issue.



The issue is using the variable to select the background & font...



Ideas?


Tom


Can you use javascript in that header?

var CreditLimit = QSRules.Transaction.Customer.CreditLimit; if (CreditLimit < 0) { document.write("The customer has a negative credit balance!"); }

or alert or...?

Haven't tried any of that btw.

"Terrible Tom" wrote:

The HTML Status Bar I'm using is very close to the default that comes with RMS. It was provided by my reseller, whom I believe I will contact next...

The header contains both Java and VB script. It's the body that's the issue.

The variable declarations are all in VBscript and they look like this: Custom1 = QSRules.Transaction.Customer.CustomText1

I added this one: CreditLimit = QSRules.Transaction.Customer.CreditLimit And the form still works great.

The element looks like this:

I want to add a second element that uses font color:black and a gradient start/stop of FF0000 (solid red) that gets used only when CreditLimit < 0.

"Mickie" wrote:

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required