cfmessagebox

Creates MessageBox

 <cfmessagebox type="alert" message="" name="">

 cfmessagebox(type="alert", message="", name="");

This tag requires Adobe ColdFusion. Not supported on Lucee, OpenBD, etc.

cfmessagebox Attribute Reference

labelcancel

The text to put on the cancel button of a prompt message box.

callbackHandler

callback function which will be called when any ok|no|cancel button is clicked

labelok

The text to put on a alert button and prompt messge box OK button.

title

The title for the message box.

type
Required

Type of action to be performed Values:
  • alert
  • confirm
  • prompt

message
Required

Message text which will be displayed

labelno

The text to put on the button used for a negative response in a confirm message box.

labelyes

The text to put on the button used for a positive responsein a confirm message box.

multiline
Default: NO

Applies for prompt action only. Signify whether prompt is textarea(multiliner) or oneliner(textField)Default=false

name
Required

Name of the messageBox

bodyStyle

A CSS style specification for the body of the message box. As a general rule, use this attribute to set color and font styles

buttonType

Applies to the control type - confirm
The buttons to display on the message box Values:
  • yesno
  • yesnocancel

icon

Specifies the following CSS classes
error: Provides the error icon. You can use this icon when displaying error messages.
info: Provides the info icon. You can use this icon when displaying any information.
question: Provides the question icon. You can use this icon in a confirmation message box that prompts a user response.
warning: Provides the warning icon. You can use this icon when displaying a warning message

width

Width of the message box in pixels.

x

The X (horizontal) coordinate of the upper-left corner of the message box .
ColdFusion ignores this attribute if you do not set the y attribute.

y

The Y (vertical) coordinate of the upper-left corner of the message box.
ColdFusion ignores this attribute if you do not set the x attribute.

Fork me on GitHub