Quickly go from a paper court form to a runnable, guided, step-by-step web application powered by Docassemble. Swap out branding and pre-built questions to meet your needs.
It's possible to set a boolean as the overflow_trigger for an ALAddendumField when the conditions for triggering the addendum don't depend on the length of a list or string. But we weren't properly handling the condition where the boolean was False.
This handles the False condition in the overflow trigger by returning an empty string, which will result in has_overflow() returning False.
This situation may be a bit unusual, but it might be worth using this pattern when the conditional text is required to be added to the same addendum as other overflow text. In other situations, it would make more sense to create a standard ALDocument with the enabled value set.
This also fixes a production bug in the Vermont Divorce package.
It's possible to set a
boolean
as theoverflow_trigger
for an ALAddendumField when the conditions for triggering the addendum don't depend on the length of a list or string. But we weren't properly handling the condition where theboolean
wasFalse
.This handles the
False
condition in the overflow trigger by returning an empty string, which will result inhas_overflow()
returningFalse
.This situation may be a bit unusual, but it might be worth using this pattern when the conditional text is required to be added to the same addendum as other overflow text. In other situations, it would make more sense to create a standard ALDocument with the
enabled
value set.This also fixes a production bug in the Vermont Divorce package.