cmb2-conditionals
cmb2-conditionals copied to clipboard
Allow conditionals for non-input fields
Allow for non-input fields (like titles) to be conditionally shown.
The trick involved is to use the id
attribute as a substitute for the name
fields of inputs to remember the seen dependents. The rest of the logic works since it relies on the parent rows.
This solves https://github.com/jcchavezs/cmb2-conditionals/issues/27