Conditional HTML Status Background Color

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

Reply to
Terrible Tom
Loading thread data ...

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:

Reply to
Mickie

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:

Reply to
Terrible Tom

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.