-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Dynamic FieldArray onChange event #3839
Replies: 1 comment · 1 reply
-
Hey,, Did you get the answer? i am also facing same issue and dont know how can i change array item value with onChange. |
Beta Was this translation helpful? Give feedback.
All reactions
-
import React, { useState, useEffect, useRef } from "react"; import GWSProductItemForm from "./GWSProductItemForm"; export const subplans: any = { export const populateSubplans = (productType: any) => { const Newproposal = () => { const [gwsPriceFormInitValues, setGwsPriceFormInitValues] = useState({ const [productPriceDetails1, setProductPriceDetails1] = useState(); const handleButtonClick = () => { useEffect(() => { const getProductPrice = () => {
}; const getInvoiceData = async () => {
}; const setFormData = (data: any) => {
}; const addProductItem = (values: any) => {
}; const handlePriceGivenByGoogle = (name: any, value: any, setFieldValue: any, resetForm: any) => { const handleTransationType = (value: any, name: any, setFieldValue: any, resetForm: any) => { const handleContractPeriodChange = (value: any, setFieldValue: any, resetForm: any) => { const handleProductTypeChange = (index: any, value: any, setFieldValue: any) => { const handleSubPlanChange = (index: any, value: any, setFieldValue: any) => { const handleLicensesChange = (index: any, value: any, setFieldValue: any) => { const handleGooglePriceChange = (index: any, value: any, setFieldValue: any) => { const handleCustomerGivenPriceChange = (index: any, value: any, setFieldValue: any) => { const proposalSubmit = async (values: any) => { const comparePrice1 = (values: any) => {
}; const calculateMarginAmount = (perLicensesAmount: any) => { const comparePrice2 = (values: any) => { const calculate = () => {
}; const resetTable = (resetForm: any) => { return (
); export default Newproposal; |
Beta Was this translation helpful? Give feedback.
-
How to trigger onChange when the field changes on FieldArrray Item? Array items can be added. So is there a way in formik if the quantity field changes on Array 2 element just trigger for that item?
Only adding the relevant code section
Beta Was this translation helpful? Give feedback.
All reactions