Play an animation when UI button is pressed

Now I have a canvas with a button. I’d like to realize that when I press the button, then it can play my animation. In fact it is animation about opening a door(I download from asset store Sci-Fi Door | 3D Sci-Fi | Unity Asset Store). I tried to make an onclick function. Drag the door to the onclick , choose the Animation, then drag the animation (called open) to the AnimationClip part. But it didn’t work. So I wonder should I write a script and where should I put the script to? Could someone help me? Thank you.

Also looking for an answer!