Default Field Value

Case

Assume the content to sync has a body field where the source content may or may not be empty. And at the destination this body field should never be empty. Instead of empty the body should be the following.

-

We need to be able to:

  1. Conditionally set a value based on if the current value is empty.

Solution

ImpulseSync can solve this with one job and the add-replace-field manipulator.

First we create a job to sync the content. Then add an add-replace field manipulator.

This add-replace field manipulator config adds/replaces the field body when the value is empty. This is determined by the Runmanipulator option which is set to VALUE_EMPTY.

The field value to be used is set to

-

When this job is run you can see that an empty body value is replaced with the appropriate value.

Last updated