Get form fields from API?

Hi Baserowers,

I post this message here while I don’t know whether my request is currently achievable and I did not find yet how to do it or whether it is not possible (in which case this would rather be a feature request).

My problem: I have a table with different forms containing different fields. I would like to generate pre-fill form urls using n8n. I then would like to know what field are contained in a specific form in order to only prefill fields that actually appear in the form.

How to do this: For now, the only way I found to do this is to manually create a dict variable in n8n that contains the field or field ids for every forms which is hard to maintain and keep the dict updated.

My question: Is there currently a way for me to automatically get the fields of a specific form from the API?

Thank for your answer,
asan :fox_face:

Hi!

Sure. If the form is shared, the easiest way to get a list of fields in a form is to use this call:

https://api.baserow.io/api/redoc/#tag/Database-table-form-view/operation/get_meta_database_table_form_view

The response will contain a list of fields that has been added to the form only.