PDA

View Full Version : Ext.Msg.prompt text required ?



nishi_indie
2 Sep 2010, 12:02 PM
Is there any way we can set the property of the text box displayed in the message box (prompt) to not allow blanks. I have a simple requirement of accepting some text(required) and don't want to instantiate a form just for that.

Thanks

Condor
3 Sep 2010, 1:43 AM
Ext.MessageBox isn't easily modified (it has a lot of private methods).

That leaves you with 2 options:
1. Reshow the prompt when the user presses OK with a blank value.
2. Build your own window with form.