For e.g. if there are two fields say field1 and field2 and on selection of a particular value in field1, we would like to make field2 mandatory.
Here we would first write the code for that in the onSave event of the field1.
Than again we would have to put the same code in the onload event also to reflect the same condition.
After some time it becomes really difficult to maintain it!
Please go through that !!
Just thought of sharing it ….