Hi Shruti,
Pass any specific value in URL Parameter while doing from MDG.
Check these parameter at the time of validation, if you found specific value then skip it otherwise just execute your code.
It just my thought not sure correct way or not.
Regards,
Sudhir Wakodikatr