Custom Form Template using only Category names instead of every Field name

How do I use the custom form template using only category names instead of each field name?

I see this post where I want to do the same but I do not want to create every field and try to reproduce everything you already do automatically
1 person has
this question