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 derfloh 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
Joined
Jun 25, 2007
Messages
54
Location
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
 
That worked great! Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top