There is contact form using Block generated using generateBlock on the my page which works exactly as excepted, like it send data back to me when user request it and all .
Now I want to have a contact form just above my footer on some of the page , I don’t know if I can use block for that I tried but couldn’t find a proper way , so as of now I have created a custom form using hooks . Now as the form field are exactly same for the form using blocks and hooks . How I make sure that when I submit the Hooks form same backend the trigger as for block . Do I have to write custom php code for this ? Or can you use the backend for the Block form . If yes how ? Like I can’t find the exact code for contact us form .
I am using generate-press theme .
If only adding custom php is the option, do I need to have any plugin to send email to myself for contact us page or wp mail will do it automatically. i am testing or trying all these in local envious setup using localWp.

Hi there, I had to do something similar with GenerateBlocks and GeneratePress. I created a reusable block and then selected the correct hook in GeneratePress to render the block there: https://gist.github.com/neverything/28306e674f551151f8670f63a548c0cc