[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

populating a form from a table ( edit button)


I have a table  with multiple rows ; each row has a edit button
and when someone clicks the edit button I want to populate a form to show him details about that row
The form is on the same page!!!!!!!!
Can someone pls refer me to some sample code

Thanks for all ur help!
2 Solutions
either have your edit button send a request to the server to populate the form
or use javascript to populate it without sending a request
royalcyberAuthor Commented:
rather than reinventing the wheel can I folow an example

thnakyou for all ur help
Mayank SAssociate Director - Product EngineeringCommented:
>> The form is on the same page!!!!!!!!

Keep invisible text-boxes on the form. When the edit button is clicked, make them visible and populate them with the initial data (which was otherwise displayed on the table). When the user updates it and clicks on some button, submit the request to the server.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now