<ApolloForm> helps you making conditionals fields, in short make some fields appearing only if some data is entered.
<ApolloForm>
In order to do this, just add a ui:if to any property of your ui object.
ui:if
ui
Example:
<ApplicationForm title={'Todo Form'} config={{ name: 'todo', schema: schema({ shipping: { billingSameAsDelivery: types.type('boolean'), billing: { address: types.type('string') } } }), saveData: data => { console.log('save !', data); } }} data={{}} ui={{ shipping: { billing: { 'ui:if': { 'shipping.billingSameAsDelivery': true }, } } }} />
In this example, billing field will only show if billingSameAsDelivery is true (checked)
billing
billingSameAsDelivery
true
There was an error while loading. Please reload this page.