Action > SET_TEXT β
See details here: SINGLE-LINE-TEXT, LONG-TEXT, HTML-TEXT actions
- If the target of the
SET_TEXTaction is aSINGLE-SELECTtype field or aCLASSIFICATION, when the value to apply is not a key of an existing option/category of the target field, no value is applied to the target field. A warning message is then posted in the logs. More details here
Value details β
| Source value | Destination = SINGLE-LINE-TEXT, LONG-TEXT, HTML-TEXT, IDENTIFIER |
|---|---|
a | a |
`` or null (absence of value) | null (absence of value) |
Target DATE or DATE-TIME β
| Source value | Destination = DATE field | Destination = DATE-TIME field |
|---|---|---|
1977-04-22 | 1977-04-22 | 1977-04-22T00:00:00Z |
1977-04-22T06:00:00Z | 1977-04-22 | 1977-04-22T06:00:00Z |
1680685460Invalid Date | unchanged value The proposed value is invalid, hence no value is persisted. | unchanged value The proposed value is invalid, hence no value is persisted. |
| `` Empty field value | `` Existing value is removed |
Target SINGLE-SELECT β
| Source value | Destination = SINGLE-SELECT field |
|---|---|
REDthe value exists in the target field | RED |
RED,GREENthe values exist in the target field | unchanged value A single value can be set, hence no value is persisted. |
REEEDthe value does not exist in the target field | unchanged value The provided value does not exists in the targeted field, hence no value is persisted |
| `` Empty field value | `` Existing value is removed |
Copy details β
Source is SINGLE-LINE-TEXT, LONG-TEXT, HTML-TEXT field or IDENTIFIER β
| Source value | Destination = SINGLE-LINE-TEXT, LONG-TEXT, HTML-TEXT field or IDENTIFIER |
|---|---|
a | a |
`` or null (absence of value) | null (absence of value) Existing value is removed |
Source is NUMBER field β
| Source value | Destination = SINGLE-LINE-TEXT, LONG-TEXT, HTML-TEXT field or IDENTIFIER |
|---|---|
10 | 10 |
10.1 | 10.1 |
-1000 | -1000 |
`` or null | null (absence of value) Existing value is removed |
Source is SINGLE-SELECT, MULTIPLE-SELECT... field or CLASSIFICATION β
| Source value | Use | Destination = SINGLE-LINE-TEXT, LONG-TEXT, HTML-TEXT field or IDENTIFIER |
|---|---|---|
- key = RED | RED | |
- key = RED title = red | use = title | red |
- key = RED title-local fra = rouge | use = title-local lang = fra | rouge |
- key = RED- key = GREEN | RED;GREEN | |
- key = HDMI quantity = 1 | HDMI:1 | |
- key = HDMI quantity = 1 comment = HDMI 3.1 | HDMI:1:HDMI 3.1 | |
- key = HDMI quantity = 1 comment = HDMI 3.1- USB quantity = 2 comment = 1 USB-C and 1 USB 2.0 | HDMI:1:HDMI 3.1;USB:2:1 USB-C and 1 USB 2.0 | |
`` or null | null (absence of value) Existing value is removed |
Target is DATE, DATE-TIME β
| Source value | Destination = DATE field |
|---|---|
1977-04-22 | 1977-04-22 |
abc | unchanged value The provided value is not a valid date, hence no value is persisted. |
`` or null (absence of value) | null (absence of value) Existing value is removed |
| Source value | Destination = DATE-TIME field |
|---|---|
1977-04-22T06:00:00Z | `1977-04-22T06:00:00Z |
abc | unchanged value The provided value is not a valid date, hence no value is persisted. |
`` or null (absence of value) | null (absence of value) Existing value is removed |
Target SINGLE-SELECT β
| Source value | Use | Destination = SINGLE-SELECT |
|---|---|---|
- key = REDthe value exists in the target field | RED | |
- key = RED title = red | use = title | red |
- key = RED title-local fra = rouge | use = title-local lang = fra | rouge |
- key = RED- key = GREENthe values exist in the target field | unchanged value A single value can be set, hence no value is persisted. | |
- key = REEEDthe value does not exist in the target field | unchanged value The provided value does not exists in the targeted field, hence no value is persisted | |
| `` Empty field value | `` Existing value is removed |
Template details β
TIP
If a read-only field has to be automatically calculated, it is recommended to use SINGLE-LINE-TEXT target and source fields, whatever the calculated value type is, as there is a field type compatibilty check for each target field. See here for more details. With a target SINGLE-LINE-TEXT field you can use almost any kind of source field.
Target SINGLE-LINE-TEXT, IDENTIFIER, LONG-TEXT, HTML-TEXT β
| Template result | Destination = SINGLE-LINE-TEXT, IDENTIFIER,LONG-TEXT, HTML-TEXT |
|---|---|
a | a |
a<br>b | a b |
`` or null (absence of value) | null (absence of value) |
| Invalid text / An error occured | unchanged value The proposed value is invalid, hence no value is persisted. |
Target DATE, DATE-TIME β
| Source value | Destination = DATE field | Destination = DATE-TIME field |
|---|---|---|
1977-04-22 | 1977-04-22 | 1977-04-22T00:00:00Z |
1977-04-22T06:00:00Z | 1977-04-22 | 1977-04-22T06:00:00Z |
1680685460Invalid Date | unchanged value The proposed value is invalid, hence no value is persisted. | unchanged value The proposed value is invalid, hence no value is persisted. |
| `` Empty field value | `` Existing value is removed | `` Existing value is removed |
| Invalid text / An error occured | unchanged value The proposed value is invalid, hence no value is persisted. | unchanged value The proposed value is invalid, hence no value is persisted. |