Home > Forum > User Voice > Extend Confirm/Alert form rule

Extend Confirm/Alert form rule
1

MVP

Hi,

the "new" confirm/alert functions are really great and please don't remove the option to pass HTML as a parameter. :)

Yet there's always room for improvement. Could we get additional/optional parameter for the title, yes and no button?

Depending on the context the labels "Confirmation", "Yes" and "No" may not be the best.

For example this would be the default labels
Title: Confirmation
Text: If you progress, this will trigger the deletion of xyz
Buttons Yes, No

This would be an alternative using the suggested parameters
Title: Delete everything?
Text: If you progress, this will trigger the deletion of xyz
Buttons Yes, I know what I'm doing ; Cancel the action

Best regards,
Daniel







Best regards,
Daniel

This will be grate like in for ex. in VBA:
https://learn.microsoft.com/pl-pl/office/vba/language/reference/user-interface-help/msgbox-function

Syntax
MsgBox (prompt, [ buttons, ] [ title, ] [ helpfile, context ])

for:
helpfile << could be html link to file

example of "data"

[code=VB]
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Msg = "Do you want to continue ?" ' Define message.
Style = vbYesNo Or vbCritical Or vbDefaultButton2 ' Define buttons.
Title = "MsgBox Demonstration" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic context.
' Display message.
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
If Response = vbYes Then ' User chose Yes.
MyString = "Yes" ' Perform some action.
Else ' User chose No.
MyString = "No" ' Perform some action.
End If

[/CODE]