A web-based tool in Microsoft 365 that enables users to quickly create surveys, quizzes, polls, and feedback forms.
Dear Ruchita,
Generally, if you embed the form on a SharePoint page, you can still get the form field values and the response id from the trigger in a automatic flow in Power Automate or get them by using Rest API as follows.
Get:https://forms.office.com/formapi/api/forms/<formid>/responses
It seems that you embed the form page on other web sites. If yes, as the question is mainly related to the web page development, I kindly suggest you post a new thread on our specific support forum .NET community support for expert help.
Based on the article, you may use the JavaScript solution in your environment.
Disclaimer: Microsoft provides no assurances and/or warranties, implied or otherwise, and is not responsible for the information you receive from the third-party linked sites or any support related to technology.
Thanks for your understanding and have a nice day!
Cliff