Pulling Logged In Users details into my Fillout form
→ Email
→ Business Name (Note: I have Users associated to Businesses in Airtable)
I have a Product Table and Enquiry Table.
I want to pull through a record ID (a product) FROM a list block or list details block INTO my Fillout form using an Action button associated with the Product and produces the form to send to the Enquiries Table after submission.
I need to find a way to pass the record ID of the product from EITHER the list block OR list details block as a URL parameter on my embedded form.
For this you will want to setup url paremeters into your fillout form settings tab.
You can name them like:
user_email
user_biz_name
Then on the softr page you plan to embed the fillout form sharing-code
You need to re-construct the form url adding the previous parameter to your form sharing url:
And also in fillout when building the form, don’t forget to update the default value options for the fields email and biz name with the url paremeter you created in the first step of this short guide.
Please note that to make it 100% work you need javascript logic to access the values from your airtable users table and ‘map’ them to your form url values.
Also if you need to pass a parameter like current record id to your fillout form
you need a piece of javascript to look for the softr ‘recordId’ parameter in the url and pass it to your form url.
In fillout there is an option that would let you add linked records to your form via subform. In your case adding records from products table to your query table all within the same form.
Have a fillout form open, click a button from your record list, and add that product to your current fillout form, it could be done.
But consider that when pressing the button to add the product, the product must be added and stored into a linked table. Then fillout form can retrieve the added products reading them as linked records.
This will also require custom automations to handle part of the logic.