Hi @Shreya Singh ,
I understand you want to fetch the list data and display it on the above form. If your code runs on an SPO page, you may consider using Rest API or JSOM. Please take a reference of below docs:
- https://www.codesharepoint.com/rest-api/get-list-item-by-id-in-sharepoint-using-rest-api
- https://www.codesharepoint.com/jsom/get-list-item-in-sharepoint-using-jsom
Please feel free to talk us if you have more questions.
Best Regards,
Baker Kong
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.