function

ShowWhen

func ShowWhen( path, equals string, ) CommonOption

Show a field when one sibling-scoped string value matches.

Source field/options.go:500

@param path
The path value.
@param equals
The equals value.
@returns
The declared result.

This is the concise equality form of ShowWhenCondition. At the root, sibling scope is the document root.

Related types

  • CommonOption

    Options accepted by every built-in and plugin field.

Related guides