You are viewing limited content. For full access, please sign in.

Question

Question

How do I pre-populate fields in a Collection from a Querystring

asked on April 19, 2018

I am creating a form that has a Collection containing a couple textboxes for user input.  The user may submit the same request monthly or even weekly.  I read this article: https://www.laserfiche.com/ecmblog/tech-tip-using-url-parameters-to-pre-fill-form-fields/ but was wondering how would I do this same procedure to pre-populate fields in a collection and possibly multiple rows as well?

0 0

Answer

SELECTED ANSWER
replied on April 19, 2018

I don't think you can do this with collections/multiple rows. From what I've seen, you would only have two options, but both would require a more complicated setup.

  1. Store the values in a database
  2. Set the database up as a lookup source
  3. Use a unique identifier in your URL to populate a hidden field and grab the data when the form loads

OR

  1. Put the data in as a delimited string (i.e., 1|2|3|)
  2. Pre-populate a hidden field
  3. Use JavaScript to break the data up and populate your collections/rows

 

URL parameters don't really have support for collections in general, and there's a limit to how much you can put in a URL string so depending on how much data you're bringing in a database may be the only viable solution.

 

0 0
replied on April 19, 2018 Show version history

Yea that's what I thought.  Was just verifying.

 

Update:

I went with the first option and it worked for me.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.