Is it possible to dynamic populate two fields

I can set up one field to be dynamically populated (I use the form block), but I really need to have two fields dynamically populated, each field with a different value depending on the page the form is on.

How do I go about doing that?

Hi Yumei. If you are dynamically populating them in the block, you can separate the parameters with an ampersand like you would in the URL:

fname=Chris&lname=Hajer&eml=chris@gravity.com

The fname, lname, and eml are the parameter names I used for the fields. That will pre-populate the fields with the values you set in the block settings. Additional information here:

1 Like

Thanks, Chris! What if I want to dynamically populate two fields with different parameters?

That is what I showed in my example. My three parameters are:

  • fname
  • lname
  • eml

Does that method work for you?

1 Like