Templates
Templates

I am aware that when showing an Editor form, I can use field.dependent
hide
to keep certain fields from displaying.
When using a template, since the fields are "hardcoded," this seems not to works.
Is there any reasonable way to collapse (not just hide) certain fields in a template?
This question has an accepted answers - jump to answer
Answers
I'm really surprised that hiding a field doesn't work in a template. Are you able to give me a link to a page showing the issue please?
Allan
Hi Allan,
Yep, that's the crazy thing about coding--when you do it correctly, if often works!
I didn't have quotes around the
hide
andshow
, and I was comparingval
to a numeric!Allan