cfmessagebox

Creates MessageBox

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

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

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

Attribute Reference for the cfmessagebox tag

labelcancel

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

callbackHandler

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

labelok

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

title

Required: No
The title for the message box.

type

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

message

Required: Yes
Message text which will be displayed

labelno

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

labelyes

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

multiline

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

name

Required: Yes
Name of the messageBox

bodyStyle

Required: No
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

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

icon

Required: No
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

Required: No
Width of the message box in pixels.

x

Required: No
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

Required: No
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