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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -