dhtmlxMessage -

(I’m posting this in the scheduler section as that is the primary component I’m using, and there is no obvious board for this - the uncategorized discussion board is locked).

I want to replicate the built-in javascript ‘prompt’ function - which asks for a single field value and returns the response. Is there an easy way to mimic this within the dhtmlxMessage component?

thanks

Hi,
you can put any html, including inputs and buttons inside a message popup, please check this example
docs.dhtmlx.com/scheduler/snippet/115e56e9

Though, the custom forms won’t work exactly as ‘prompt’ since the custom methods won’t stop the event loop, unlike window.alert, confirm, prompt. I.e. the method that opens the popup won’t return form value. You’ll need to add a handler for ‘save’ button click and obtain the value from a callback.

Thank you Aliaksandr

This is going to sound like a silly question, but what do I need to add to that to apply one of the standard skins to the elements of this form?