I'd like to document the various form fields for a page in an application onto a Confluence page — things like the field name, its ID attribute, validation rules, etc. This is easy enough to do in a simple table, but I'd also like to document more complicated things, like the conditions under when certain fields are hidden/shown.
For example, perhaps a Zip Code field only appears or is only required if the Country field further up the page has the value "USA" selected.
What is the best way for modeling UI/UX requirements like this in Confluence?