Validate two components together

View: New views
2 Messages — Rating Filter:   Alert me  

Validate two components together

by Tharange :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have two radio buttons and two text fields. If I select radio1 then first text field should be mandatory. Else the second text box should be mandatory. I'm using NetBeans 6.1 as IDE. I'm stuck. Please help.

Re: Validate two components together

by donlelel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you tried using virtual forms? I dont know if they're available in 6.1, but 6.5 definitely has them.
With virtual forms, you can submit parts of the user input.

Don


Tharange wrote:
I have two radio buttons and two text fields. If I select radio1 then first text field should be mandatory. Else the second text box should be mandatory. I'm using NetBeans 6.1 as IDE. I'm stuck. Please help.