Public forms prefill

Hello!
Is it possible to prefill field values in the public forms plugin using query parameters?

For example: …/public-forms/ls19a0ue23r?firstName=John

Thanks!

1 Like

Currently not supported.

1 Like

Hi. When will nobobase support for this feature. I think It’s important for data input to any solution?

No plans for now.

Dear Community and Support,

this will be a crucial feature for us for getting accurate and correct data from end customers.
The idea is, that we provide a custom URL (to a public form) for each customer with the personal data set prefilled. And if all is fine the end customer just update already existing data.

Therefore it is crucial that we can provide a prefilled form. Any plans / ideas on how this could be realized?

Many Thanks
Chris

1 Like

Yes you can.

Go to public forms and click configure on selected form.

In the url, you can add ?firstName=John, press enter

On the First name field in the form, go to “set default value”.
Now on the function (x) you will se URL search params. Select firstName

That sounds great!
Is there also a possibility to reload data within this section?
I am just thinking if it is clever to pass all data via URL params or if it is better to just pass an UUID an reload live… :smiley:

Many thanks
Chris

Presetting with the URL search params work quite well for simple data types.

I need to set a on-to-one and a many-to-many relationship.
Here I am running in trouble. The many-to-many has a “default value” option but I have no idea how to set the URL param so the right values are preselected. I tried different things param=value1,value2
param=[value1, value2]

Nothing worked. I only see a “N/A” in the many-to-many relationship field.

The one-to-one field has a different issue. There is no “default” option :frowning:

Does anyone has an idea on how to come around this?

Many Thanks
Chris