Sometimes you may want to prefill user details within the Gleam widget to prevent users from having to enter details twice. This may be if a user is already logged into your website, or if you're redirecting users to a Gleam widget after completing another form first.
Applications that support Prefilling:
<script> var Gleam = Gleam || ; Gleam.push(['name', 'John Doe']); Gleam.push(['email', 'email@example.com']); </script>
The main things you can pass are:
It will also match up with any additional Custom Fields that you have setup.
The second way you can prefill is to pass parameters to the URL. This will only work if you send users to the Gleam Hosted Landing Page or use the iFrame embed option.
You must also encode the parameters & parameter names.
You can see how this would work sending users to our demo competition with Prefilling active:
Again this method supports: