Excerpt | ||||||
---|---|---|---|---|---|---|
FieldValueChangedCondition checks if the value in the provided fieldpath was changed and triggers in this very moment e.g. Check if Checkbox "Stop Publication" changed. Configuration allows checking for any change or change to a specific value (expected value). This does not include changes to the name or settings of the Field | ||||||
Tip | ||||||
|
Triggers the moment the value in the fieldpath changed to any value (leave "expected value" empty) or a specific value (provide it as "expected value").
This condition is also used to check for XMP values of the file, as this field in Picturepark is updated with the file’s XMP values on upload.
Code Block |
---|
{
"kind": "FieldValueChangedCondition",
"fieldPath": "xmpMetadata.dc.creator",
"expectedValue": null,
"traceRefId": null
} |
Specific Definitions
Select the condition.
Property | Value |
kind | FieldValueChangedCondition |
fieldpath | layerId.fieldId Details on accessing field values, specifically fieldpath starts lowercase Supports JSON path syntax which you can test here: https://jsonpath.com. |
expected value | can be left empty, allows providing the expected value of the field after it was changed (e.g. check if stopPublication (checkbox) changed to true). Provide the value in the correct format for the field provided, text as text, numbers as numbers:
|
|
...
Did Tagbox Product
...
Change to product X?
Code Block | |
---|---|
{ "kind": "FieldValueChangedCondition", "fieldPath": "productInformation.stopPublication", "expectedValue": { "_refId":"12354", "name":"my product X" } | |
title |
Did Checkbox
...
Change to True?
Code Block |
---|
{ "kind": "FieldValueChangedCondition", "fieldPath": "productInformation.stopPublication", "expectedValue": { "true" } |
...