Advanced condition editor

The editor does not require providing the prefix "js:" and will not display it in conditions. The prefix will be appended in the source automatically when saving changes.

Introduction

The advanced condition editor is a special editor designed to streamline the work of the form designer. It is equipped with the following features:

  • syntax highlighting,

  • displaying suggestions for variable and field names while editing conditions,

  • displaying eximee API suggestions while editing conditions.

Illustration 1. Example conditions in the component properties palette

Places of occurrence

Three component attributes in Eximee Designer use this editor. They are:

  • visibility condition,

  • activity condition,

  • requiredness condition.

Illustration 2. Advanced condition editor - editing the visibility condition

Syntax suggestions

The editor suggests eximee API elements and commonly used JS methods to the user. Editor suggestions can be seen by pressing Ctrl + Space. This will expand a list of items from which you can see the following:

Standard JS methods and fields:

  • parseInt()

  • parseFloat()

  • .length

  • size

  • empty

API provided by eximee:

  • getValue()

  • getData()

  • isVisible()

  • getStatementValue()

Illustration 3. Advanced condition editor - expanded list with syntax suggestions

Additionally, MID of components (with their ID in parentheses) and names of session variables used on the form will appear in the suggestions.

Illustration 4. Advanced condition editor - view of suggestions for components located in the artifact
Illustration 5. Advanced condition editor - view of suggestions for filtered components

Condition examples

Last updated

Was this helpful?