Replies: 4 comments
-
I think you are doing everything right, if you are using the form and you need to add some data for the submitted data, then hidden input fields are the best solution. Or you can create a state (by useState), save all changes there (onChange event), and then send this state through the "emailjs.send" method. |
Beta Was this translation helpful? Give feedback.
-
Okay, I will try and let you know, thank you ! |
Beta Was this translation helpful? Give feedback.
-
Okay, I think the problem is that I'm using React-Hook-Form |
Beta Was this translation helpful? Give feedback.
-
Hi, I fixed it this way :
And voilà Thanks again for help |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I can send a static value in a hidden input, but I'd like to know if it's possible to do the same thing with a value witch is updated on form submission ?
I'm working with ReactJs.
I've tried with useState() and useRef() but the value keeps the initial state or nothing.
Thanks for help
Beta Was this translation helpful? Give feedback.
All reactions