NotEmptyFieldSection2

From SMTX Wiki
Jump to navigation Jump to search

Suppose you want to start a section, but only when a previous field (field A)is filled in.

Problem is that the section's rules do not allow for something like : IF (fieldA)is DIFFERENT from <EMPTY>.

To solve this, work with a second field (fieldB) of the type 'hidden'.


In there, place 2 things as default values:

1. enter fixed string like 'ABC'

2. Add next to it the contents of FieldA


Now , the value of field B will be :

- if (fieldA) is empty : ABC

- if (fieldA) is filled in in : ABC(ValueFieldA)

Next, you can build a section that is triggered when : ValueFieldB is DIFFERENT from ABC


This little bypass helps to solve the initial issue, and will allow you to trigger a section when (fieldA) is filled in.