Property of Type WebDialog

I have a property “Dialog_to_Display”

It is set to type “WebDialog”

The default is set to en existing webdialog.

When I compile it throws: A constant was expected here, but his is some other kind of expression.

How do I set the default value of “Dialog_to_Display”

You created this property on a web layout ?

Default values of properties can only be intrinsic types (Text, String, numbers, etc.).

You’ll have to assign it a value in code, probably from the Open or Shown event handler.

@Norman Palardy Its a property of the Webpage. (Does a web layout differ?)

No
But you cannot set up a property with a default value for a type that requires use of the NEW operator (like this would)
You’ll have to set the value at runtime

You could try doing a Dynamic web dialog. Rather than having an instance on the web page, create a New instance of it at runtime and use AddHandler to get the Dismissed event.