🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Parsed/FollowEnable
This page was created by PageReplicator on 2025-09-01. Last edited by PageReplicator on 2025-09-01.

Template:Notice



In the ViewModelEditor, when selecting a ViewModelColumn, you see this:

<a href="/File:FollowEnable_1704890566909.png" class="image" data-bs-title="File:FollowEnable_1704890566909.png" data-bs-filetimestamp="20240110124249"><img alt="FollowEnable 1704890566909.png" src="/images/thumb/a/a0/FollowEnable_1704890566909.png/738px-FollowEnable_1704890566909.png" decoding="async" width="738" height="232" class="thumbimage" srcset="/images/a/a0/FollowEnable_1704890566909.png 1.5x" /></a>
<a href="/File:FollowEnable_1704890566909.png" class="internal" title="Enlarge"></a>

The FollowEnable (Follow Enable) checkbox is there to reduce the need to write a VisibleExpression in the common case that you want your VisibleExpression to be a Negation of the ReadOnlyExpression.

Example[<a href="/index.php?title=Documentation:FollowEnable&veaction=edit&section=1" class="mw-editsection-visualeditor" title="Edit section: Example" data-bs-title="Documentation:FollowEnable">edit</a> | <a href="/index.php?title=Documentation:FollowEnable&action=edit&section=1" title="Edit section: Example" data-bs-title="Documentation:FollowEnable">edit source</a>]

ReadOnlyExpression:

<span class="col-black">self.ThisShouldBeReadOnlyAndInvisible</span>

You would then also need a VisibleExpression of:

not self.ThisShouldBeReadOnlyAndInvisible

Instead of filling the VisibleExpression, simply click the FollowEnable box behind the VisibleExpression. This will use a negated ReadOnlyExpression as the VisibleExpression automatically. You will not need to maintain 2 expressions.

(The reasoning for calling it "follow enable" rather than "follow a negated readonly" is purely space conservative.)