Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Prevent required field error message coming up before save

$
0
0

I have some situations where I have filtered lookups (i.e. lookup B has its values filtered based on the value of an earlier lookup A).  However, OOTB, if you change A, B keeps its value, which is likely no longer a valid combination with A.

So I added javascript onChange of A to clear out B - basically reset it, so the user now has to pick a valid option from B.  This works fine, except that - since B is a required field - the user sees the red circled "X" along with "You must provide a value" on B as soon as they change A.  I don't like the user experience of giving them an error before they've had a chance to do the thing that would prevent the error.  I'd like to suppress this warning until it's relevant, which is when they're trying to save.  Any idea why it comes up before save, and how to suppress/clear it until then?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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