javascript - Cognito Forms: Prefill hidden field with page url -
i'm using "seamless" embed code, found on following resource page: http://help.cognitoforms.com/prefilling-a-form, , trying prefill field called "pageurl" results of like: "window.location.href", having difficulty.
below example resource page preloading first , last name fields predefined text (obviously not i'm trying do, it' example have).
<div class="cognito"> <script src="https://services.cognitoforms.com/yourforminfo"></script> <script>cognito.load("forms", { id: "1", entry: { "name": { "first": "bart", "last": "simpson" } } });</script> </div>
Comments
Post a Comment