Capture Page URL in Hidden Form Field - Custom CSS and JS implementation

Follow

Comments

2 comments

  • Avatar
    Michelle

    I'm just looking to fill one field with the URL pathname and I'm getting hung up on the many variables in your example. I tried modifying and the URL path isn't showing in my form submissions. I was trying to pull in window.location.pathname

    Can you show an example filling one field?

    0
    Comment actions Permalink
  • Avatar
    Joshua Bell

    I don'tthink this works anymore. I am a Pro user and have entered the following in my advance js editor.

    setTimeout(function(){
    console.log(window.location.href)
    }, 500)

    The link loose visibility into the parent window, Response from my console is

    https://www.powr.io/plugins/form-builder/wix_cached_view?cacheKiller=1630777758349&commonConfig=%7B%22brand%22%3A%22wix%22%2C%22BSI%22%3A%22140f4fbb-ce24-40f2-86ba-9e0e2ed48516%7C2%22%2C%22bsi%22%3A%22140f4fbb-ce24-40f2-86ba-9e0e2ed48516%7C2%22%7D&compId=comp-kt5tm540&currency=CAD&deviceType=desktop&height=535&instance=KQ2-2LpmpU843qsIp1eeJ3pVBR47quID597HsKFrjqk.eyJpbnN0YW5jZUlkIjoiMzdmZGVhY2UtMmVjNy00ZmU5LThiOGQtNzk1YTYxODc5NWIyIiwiYXBwRGVmSWQiOiIxMzNjOGU5NS05MTJhLTg4MjYtZmEyNi01YTAwYTliY2Y1NzQiLCJzaWduRGF0ZSI6IjIwMjEtMDktMDRUMTc6NDk6MDQuMTIzWiIsInVpZCI6IjExY2Q0ZTM5LTgzNWQtNGYxZi1hM2QwLWFjYjhlNTVlMzEzMiIsInBlcm1pc3Npb25zIjoiT1dORVIiLCJ2ZW5kb3JQcm9kdWN0SWQiOiJwcm8iLCJkZW1vTW9kZSI6ZmFsc2UsInNpdGVPd25lcklkIjoiMTFjZDRlMzktODM1ZC00ZjFmLWEzZDAtYWNiOGU1NWUzMTMyIiwic2l0ZU1lbWJlcklkIjoiMTFjZDRlMzktODM1ZC00ZjFmLWEzZDAtYWNiOGU1NWUzMTMyIiwiZXhwaXJhdGlvbkRhdGUiOiIyMDIxLTA5LTA0VDIxOjQ5OjA0LjEyM1oiLCJsb2dpbkFjY291bnRJZCI6IjExY2Q0ZTM5LTgzNWQtNGYxZi1hM2QwLWFjYjhlNTVlMzEzMiJ9&locale=en&pageId=w84g0&regionalLanguage=en&siteRevision=52&tz=America%2FMoncton&viewMode=editor&viewerCompId=comp-kt5tm540&width=420

    However this is my URL, I would expect to be able to capture the UUID.

    https://editor.wix.com/html/editor/web/renderer/edit/836cd197-436f-4dc9-97bd-2081a5f2f80a?metaSiteId=0b26582d-cae8-4a35-84cc-3398e4071b7e&uuid=122

    I would really appreciate some help as I just bought this tool to help but may have to switch because I thought this feature was available!

    1
    Comment actions Permalink

Please sign in to leave a comment.