What you need to create this effect:
1.
A pop-up layer containing the form (or whatever else you like).
2.
The name of the layer should contain (lock) if you do not want Xara to create a default close
button.
3.
If you do not want the default button you also have to leave the ‘Close pop-up automatically’
option checked.
4.
If you want to keep the default button you can name the layer whatever you like but have to
remove the option.
5.
On the pop-up layer you need one object with a name (but not a special name like filename=”…”
or UsesJQuery) to give the created HTML element an ID, which is needed in the code to identify
the pop-up layer.
6.
If used for a form you obviously will need submit and cancel buttons (I used the cancel button
for 5.)
7.
If you have a submit button and want it to close the popup it has to execute some code (or
maybe someone with more experience in forms knows a better way to do it).
8.
On the MouseOff layer (or any other visible layer) you also need an object with a name.
9.
If you can hide the object you do not need to apply a name but then you will have to remove
some code (see comments in code).
10.
The object has to have a link address applied to force the pop-up layer to be exported.
11.
In case your pop-up layer is named form(lock) the link address would be: popup:close
"form(lock)"
12.
Some javascript code as attached to the page header (see comments in code).