submit=(e)=>{
e.preventDefault();
let value=this.props.form.getFieldValue("key")+this.props.from.getFieldValue("replytext");
alert(value);
}
render() {
const { getFieldProps } = this.props.form;
return (
<div className="createreply-container">
<WhiteSpace />
<WhiteSpace />
<form onSubmit={this.submit}>
<WingBlank>
<List renderHeader={() => ""}>
<InputItem
{...getFieldProps("key")}
placeholder=""
/>
</List>
</WingBlank>
<WhiteSpace />
<WingBlank>
<List renderHeader={() => ""}>
<TextareaItem
{...getFieldProps("replytext", {
// initialValue: "...",
})}
placeholder=""
rows={5}
count={100}
/>
</List>
</WingBlank>
<WhiteSpace />
<WingBlank>
</WingBlank>
<WhiteSpace size="lg"/>
<WingBlank>
<Button type="primary" onClick={this.submit}></Button>
</WingBlank>
</form>
part of the code
error: