Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Advanced Control Field should continue to handle Smart Variables #74

@pbchase

Description

@pbchase

In release 3.3.8, we declared that the Advanced Control Field is deprecated. I think this statement misses the reality of the issue with the advanced control field and exaggerates the problem. We need deprecate field logic and keep smart variables.

The problem was that field logic testing was eating our lunch when the product of record, form and event counts got high. The API call that processes field logic is too expensive to run at every page load across thousands of record * form * event combinations. We tried to optimize this but could barely improve the page load time. Yet taking the calculations out of the advanced control field and instead referencing a field that had the same calculation works fine, because each of the accessed fields was already pre-calculated and stored.

Smart Variables work fine in advanced control fields because they cost about the same as a field lookup.

I think we need to change the text in the warning to say something like "Warning: the use of equations in the Advanced Control Field is deprecated for performance reasons. It will be removed in a future version of this module." Later, we should remove the ability to process calculated fields, not smart variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions