How to get feedback (user input) from a dialog?

Yes in the end I've decided not to implement this because it's not really standard. In HML, inputs should be within form elements, so this is required by the plugin API too.

That's strange, I will check.