Skip to content

Enable and disable fields with an "Edit" button #9536

Answered by melohagan
acseven asked this question in Help
Discussion options

You must be logged in to vote

Hi @acseven

Interesting use-case! Here's an approach you could take.

  1. Create an app with the sample data

  2. Add a screen called Inventory. Add a table block for the Inventory table

  3. Define actions for the On Row Click as follows:

  4. Create another screen with the route /inventory/:id. Add an Update form block for the Inventory table with the Row ID set to {{ URL.id }}. De-select. any unwanted fields.

  5. In the On screen load actions of the /inventory/:id screen, Define actions to set an initial lock state as follows:

With the JavaScript:

return {
	itemName: true,
	itemTags: true,
	notes: true,
	status: true,
	purchaseDate: true,
	purchasePrice: true
}
  1. This step will be a little ted…

Replies: 2 comments 3 replies

Comment options

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

You must be logged in to vote
3 replies
@t1mmyn4t0r
Comment options

@melohagan
Comment options

@t1mmyn4t0r
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
forms app-state Using the Update State action in Budibase
3 participants