Web Form - Field hide, Functionality

In my doc type i write a condition if the user click short text the field with data type of small text(field name - answer) It will shows. Right now i only needed type to be visible in doctype here i use the settings icon i given the 10 col size. I thought this same will appear in web form…

But in my web form it shows fully

  1. How to hide question choice answer
  2. after clicking the edit button only it should appear apart from type

My condition in doctype its not working when we directly click the edit button

After clicking the doctype field and again click the edit icon then only the condition works.
How to sort it out

Thank you