Convert an $EDIT attribute reference to the thisForm map.
ProjectWise-specific
Migration outcome
Read the unsaved field value the user is currently editing.
ProjectWise context
Document Attributes
PW system variableLegacy ProjectWise configuration
$EDIT#Discipline
CELProjectWise CEL
thisForm.Discipline
What is different
thisForm is a map of current form values. The value is read by its internal field name rather than through the legacy system variable.
Discipline must be the internal attribute name, not its display label.
thisForm is not null, but it can be empty or omit a particular field.
CEL does not automatically turn a missing value into fallback text.
Migration goal
Use the current, not-yet-saved value of another form field.
What changes
Instead of the $EDIT token, CEL reads an item from thisForm. The name after the dot must be the internal ProjectWise attribute name.
Why the CEL solution is clearer
The expression explicitly says that it reads the active form. It does not confuse the on-screen value with an already stored document property.
Before deployment
Test new-document creation, editing an existing document, and a form where the field is inactive. The map is not null, but a particular item may be absent.