Jump to content

Field validation


Wicket

Recommended Posts

Hi All,

 

What is the best way to validate fields on a modal form?

 

I need to check that the field is not empty before closing the form - usually I would do this on the button OK click, setting the modalresult = mrnone, then check the fields are <> '', then call modalresult = mrOK.

 

I cant use this technique in unigui due to the multi-threaded nature.

 

So, my question is how can i not close the form if I have a certain required field that is empty?

 

Any elegant way to achieve this?

 

Thanks,

 

Dan

Link to comment
Share on other sites

  • 3 years later...

THis doesn't work for me.

I set the Action:=caNone;

And the form STILL CLOSES.

 

Do you have an example demo to show how to do it properly?

BTW: I am using      formname.ShowModal;    to display the form.

Thanks

DAvie

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...