Skip to content

Commit 2fc0804

Browse files
committed
Support empty string value in setValue
1 parent d76603b commit 2fc0804

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/declarative-customization/formatting-advanced.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,16 @@ The below JSON will set value of `FieldInternalName_1`, `FieldInternalName_2` an
347347
- `@now` token
348348
- [expressions](./formatting-syntax-reference.md#expressions) which return a date using builtin date functions
349349
- `addDays` and `addMinutes`, two new functions to support [expressions](./formatting-syntax-reference.md#expressions) like 7 days from today
350+
- An empty string `""` clears the field value
350351
- Multi-Choice and Multi-Person:
351-
Multi value fields are special, as they need an array value to save multiple values.
352-
- `appendTo` and `removeFrom`, two new functions which operate on multivalue fields.
352+
- Multi value fields are special, as they need an array value to save multiple values.
353+
- `appendTo`, `removeFrom` and `replace`, three functions which can operate on multivalue fields.
353354
- `appendTo([$MultiChoiceField], 'MyValue')`
355+
- `removeFrom([$MultiUserField], @me)` : removes all occurences that match the second parameter
356+
- `replace([$MultiChoiceField], 'Choice 1', 'Choice 3')` : replaces all occurences of second parameter with third.
354357
- Person field values:
355358
- User Name or Email
359+
- An empty string `""` clears the field value
356360
- an [expression](./formatting-syntax-reference.md#expressions) which returns these values
357361
> [!NOTE]
358362
> A query runs with the string value provided on people column and the first person in the returned results is used

0 commit comments

Comments
 (0)