But have you ever wonder what if both features are performing the same thing during onLoad or onChange event at the same time. So, we are going to configure the business rule and JavaScript to perform the same functionality and analyse the result.
First Scenario OnLoad Event
At first i will create a business rule
then i created a JavaScript to do the same thing that business rule does.
Result for OnLoad , seems that business rule is won.
Now i am going to test the OnChange Event.
As expected business rule won again.
Now i will set the business rule to set the value instead of showing error message. Let's see the result.
Conclusion, business rule and JavaScript cannot work well on the same thing. If you ever encounter the problem where JavaScript is not working without error, please double check whether is there any business rule perform the same functionality that JavaScript does.
Conclusion, business rule and JavaScript cannot work well on the same thing. If you ever encounter the problem where JavaScript is not working without error, please double check whether is there any business rule perform the same functionality that JavaScript does.