title: Axapta Dialog Validation
body: <p>I've found several posts and articles around the net talking about validating form fields in dialogs, but none of the examples I've found seem to work properly.</p>
  
  <p>Can someone post a complete, concise example of x++ code that generates a dialog containing a single text field, performs simple validation (if text = "abc") on it, and either closes the window (returning the field value) if validation passes or generates an Infolog warning without closing the dialog if validation fails.</p>
  
  <p>For those of us just beginning in x++, I think it would be a great starting point to have an actual working example to build on.</p>
  
  <p>Thanks!</p>