Skip to content

Table Row Button to open form with table row details #14558

Answered by mikesealey
Dretreyt asked this question in Help
Discussion options

You must be logged in to vote

Hey @Dretreyt

"i have a table that can list all records in the database table, this budibase table has a button on the end that I want to be able to click on and populate a form which will let me edit the record values."

In the On Click actions, use an "Update State" action to set the name of the state to be prefixed_referralID, and the value to be the _id. (I'm using sample data)

Then, wherever you want to update that record, use a Form Block, set to Update, and pass it the state you've just declared {{ State.prefixed_referralID }}

Each time a different row is clicked, that row's ID is set in state, which will update the information in the Form Block.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mikesealey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants