Skip to content

Commit 7ecef11

Browse files
authored
Merge pull request #902 from rvsia/fieldArrayCondition
Add FieldArray conditions to FAQ
2 parents cf54dc4 + 9ade4ac commit 7ecef11

File tree

1 file changed

+8
-0
lines changed
  • packages/react-renderer-demo/src/pages

1 file changed

+8
-0
lines changed

packages/react-renderer-demo/src/pages/faq.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,13 @@ const Section = ({fields}) => {
9494
## Q. I see 'useField must be used inside of a Form' component error when using DDF
9595

9696
**A.** You have probably mixed different DDF modules. Please see [optimization](/optimization) page.
97+
<br />
98+
99+
---
100+
<br />
101+
102+
## Q. Using conditions in FieldArray
103+
104+
**A.** To use conditions in FieldArray correctly, you have to use the right field index in `when` field. This can be achieved via using a [function](/schema/condition-schema#when) instead of a direct name. Functions in `when` field receive the current field, so you know the full name with the correct index.
97105

98106
</DocPage>

0 commit comments

Comments
 (0)