How to create a hidden question?

If you are building your survey project through a form builder UI, you could do it as shown in the image below:

If you intend to do it through the XLSForm, you could do it as illustrated in the post discussed previously: