Authors:
Cameron Johns, Cille Schliebitz, Anita Gu
Changed on:
3 Feb 2025
This lesson completes the custom form field component by implementing the crucial step of outputting the captured data to the form's submitted payload. We'll learn how to use the
`onChange`
`FormFieldProps`
`locationRef`
`quantity`
`onChange`
`StockReservationPayload`
`locationRef`
`quantity`
`onChange`
`onChange`
`reservationDetails`
In this lesson, you will complete the custom form field component by producing the result from the field back to the form, which will be posted when you submit it.
A form field must produce a result to be added to the post-payload of a form submit action.
Refer to the video below to complete the following steps:
`useEffect`
`onChange`
`FormFieldProps`
`FormFieldProps`
`StockReservationPayload`
`locationRef`
`quantity`
`onChange`
`reservationDetails`
This video explains how to reuse the result from the field back in the form