I have this code for two input fields and a button: I have this code at the end:
<Form onFinish={onSubmit2URLs}>
<Form.Item name="url1" label="URL 1"> <Input /> </Form.Item>
<Form.Item name="url2" label="URL 2"> <Input /> </Form.Item>
<Form.Item>
<Button _type=#primary htmlType="submit" loading> {"Not a match"->React.string} </Button>
</Form.Item>
</Form>
How can I access the url1 and url2 values in my function below?
let onSubmit2URLs = (values: ReactEvent.Form.t) => {
Js.log("These URLs are not a match:")
Js.log(values)
}
I tried accessing values.url1 but that didn't work.