Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Dynamically making a field mandatory.

$
0
0

Hi All,

 

I have 2 radio buttons , say A and B . And 1 Field say FIELD1 which is disabled by deafult.

Now if I select Radio button A , Field1 Should become mandatory

Whereas If I select radio button B then  - field A should be  disabled again

 

Now if I declare field 1 as mandatory, the problem is that if the user selects A, which Enables Field 1 and then

he changes his mind and wants to select radio button B instead. He gets an error since Field 1 has become

enabled and mandatory...

 

How do we handle this problem. Please help

 

Regards,

Faiz


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>