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

Business Rule cannot detect the value set by JS

$
0
0

Hello experts, recently I encountered the following problem:

Context: There are 4 fields in the contact form: birthday, child (checkbox), email and telephone number. So in general, the fields email and telephone are mandatory; but since if it is a child, these information might not be necessary, we set up a business rule which basically says if the checkbox is checked, these two fields are not mandatory anymore.

On the other hand, in order to facilitate the sales process, we use JS to calculate the age of the child and checked the checkbox automatically if age is less than 18. For example: when I entered 02/08/2016, the age field will be filled with 1, and the check box will be checked.

The problem is when I manually checked the checkbox, the business rule will work and hence the fields email and telephone are no more mandatory, but when I entered first the birth date, and JS automatically checked the checkbox, the business rule doesn't work. So why the business rule didn't take the JS results into account ?


Thank you all for your help and have a nice day.

Cheers,

Yi


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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