Can i pass custom data while submitting forms? #13675
-
I wanted to send some metadata from the application in which i am using budibase forms so that the metadata will also be saved in the DB. is it possible to do so? i have explored actions but that didn't help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @MadhusudhanReddyWeWork, I've had a look at this for you. Budibase supports using When using a Then, in the actions triggered by the Save button, head to the Save Row action and click "Add column", select your metadata column(s) and set your values there. You may wish to make use of Note: Budibase currently provides five auto-columns in the Data section for you which may also be useful for your application. Hopefully that should take care of your needs. If you haven't already, you could also join our community discord server, where you can discuss ideas and solutions in Community Help, or share your work for bragging rights in Showcase. |
Beta Was this translation helpful? Give feedback.
Hi @MadhusudhanReddyWeWork, I've had a look at this for you.
Budibase supports using
JSON
as a column type in the tables, which may be how you want to store your metadata, but you could also create a new column type for each metadata value you wish to store.When using a
Form block
component, select your tableData
source. This will populate all columns in the table as fields in the form. Turn off the metadata column so that it does not appear to the user.Then, in the actions triggered by the Save button, head to the Save Row action and click "Add column", select your metadata column(s) and set your values there. You may wish to make use of
State
to help you pass values around from diff…