Dear experts,
I have a question. I want to do validation across the forms using javascript or the best approach in dynamics. Business rules have limitation that it cannot be applied on muliple entities but only one entity. I am using javascript to do a proof of concept.
I need to validate if "Field1" on first form is equal to "Field2" on second form(entity), or the sum of Field 1 and Field2 is equal to Field 1 in second form(entity).
For example: I have created two custom entites using customisation - setting> entity area. For example
Entity1: Field1, Field2
Entity2: Field1, Field2
Each entity has its own set of fields and forms related to it. I understand, through javascript, I can use Xrm.Page.getAttribute("Field1").getValue() to get value of 1 field inside the form, but it seems it is only valid for that particular form context of Entity 1.
What I need to achieve is validation applied across two forms or three forms i.e. on
Entity1->Field2 = Entity1->Field1+ Entity2->Field1.
In other words, I need to validate if "Field1" on first form(entity) is equal to "Field 2" on second form(entity), OR the sum of form1-Field 1 and form2-Field2 is equal to form1-Field 2. Is it possible in dynamics.?
How can I get the reference of other entity/form in one javascript? Can someone guide me in right direction,
Kind regards,
*This post is locked for comments