remove hidden field value if URL is blank