antd-form-builder icon indicating copy to clipboard operation
antd-form-builder copied to clipboard

Dynamic Fields hasn't take effec

Open chengcan0717 opened this issue 4 years ago • 2 comments

In examples-v4,the case Dynamic Fields: https://codesandbox.io/s/fervent-ride-55we5?file=/src/App.js When change initialValue to 'Other',the other formItem isn't appears.

chengcan0717 avatar May 11 '20 12:05 chengcan0717

For first rendering, you need to check condition by initialValue rather than form.getFieldValue

supnate avatar May 11 '20 13:05 supnate

form.getFieldValue('your form key') || meta.fields[0].initialValue

zeayal avatar May 27 '21 06:05 zeayal