Hi Srinivas,
Thanks for reply.In get p method i have written code to make Location mandatory according to the importance.It is working fine.
And Location is not mandatory in configuration.In run time if the importance is high Location will show mandatory mark.
If the Importance is not High mandt mark is getting removed.
But the problem is in previous it is mandatory(now not) so field is getting highlighted with red color .Please check the screen shot of original post.
Thanks,
Hari.