Set location required in form definition insted of view