@borjasalguero 
Thanks for your reviewing effort. I agree with your suggestion totally. We can remove JS logic for hiding element.  It works fine for me. I have another question about error message. Shell we need to hide error message in editing mode too?