@NitinL Sorry, I misunderstood the question. In this case you will have
to go with a custom validation script. This might take more effort than
sounds. I think, you will have to check the resourceType from backend
code and use jquery to fetch that and validate.