Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want the message to popup

Status
Not open for further replies.

johnhig

MIS
Jun 25, 2007
54
0
0
US
How can I make the following isdefined statement popup the message?

<cfif GetCustomerInfo.Credithold EQ "Y">
<CFSET Message = "This customer is on Credit Hold. Stop this RO and contact Issy">
<CFELSE>
<INPUT TYPE="text" NAME="CreditHold" VALUE="#Credithold#" SIZE="30" READONLY NOTAB CLASS="TextInput" TABINDEX="40" onFocus="setFieldBGColor()" onBlur="resetFieldBGColor()"></cfif>

John
 
As above, use javascript. After your initial CFIF and CFSET,
add, as an example,

Code:
<cfoutput><script>alert("#Message#");</script></cfoutput>

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top