Skip to main content

Timeline for Pre-fill field with query parameter

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Feb 5, 2015 at 18:20 comment added coreyg Cool, I'll do a support ticket. Thanks for your help on this!
Feb 5, 2015 at 15:00 comment added Nicholas Could you be more specific in what you mean by a variable? If you would like to open a support ticket we can look at some more detailed examples.
Feb 5, 2015 at 6:34 vote accept coreyg
Feb 4, 2015 at 19:02 comment added coreyg Ok, that worked to pass plain text. For passing a variable through, I could just do the following, right: <script>Cognito.load("forms", { id: "1", entry: {ModelNumber: variablename } });</script>
Feb 4, 2015 at 12:33 comment added Nicholas Everything in your script tag looks spot on, the only change you need to make to get this working is remove the space in "Model Number" The name of the field will need to have its spaces removed and each new word will need to be capitalized. You should have a script tag that looks like this: <script>Cognito.load("forms", { id: "1", entry: {ModelNumber: "text" } });</script>
Feb 3, 2015 at 22:26 comment added coreyg Thanks for the fast reply Nicholas. When you say to target the field by label name, my label name is "Model Number", but there isn't a separate field like you have for First/Last Name. Would it just be: <script>Cognito.load("forms", { id: "1", entry: {Model Number: "text" } });</script>
Feb 3, 2015 at 13:01 history answered Nicholas CC BY-SA 3.0