Add page URL to Wix contact form on a Dynamic Page

I have a Wix Contact Form that I am interested in adding the page URL when submitted to the Submission table from a dynamic page.

Basically, the user is adding a name and email and hitting submit. I am unable to see the page the user is submitting their info from because I am using dynamic page. Thanks!

This forum is for code related issues and not Wix app issues.

Wix Forms have their own support pages already in Wix Support.
https://support.wix.com/en/ascend-by-wix/wix-forms

Otherwise, as Wix Forms is a Wix app you are best suited contacting Wix Support about it.
https://support.wix.com/en/article/contacting-wix-support

You are probably not able to do this using Wix Forms, for something like that you might have to do it through a user input form with code.

So, if you do go down the code route and run into problems or get stuck, then post a question about it in this forum and people here will try to help you as best they can.

For more info on using code, have a read of all of this section.
https://support.wix.com/en/corvid-by-wix/basics

Hello. Thank you for your suggestions and input. I have in fact tried all of those suggestions above and am playing with the code part of the forms. I have been unable to pass a contact to the customer management portal in Wix using the user input form with code. So i resorted back to the Wix Contact Form which adds the users to the Customer Management portal in wix, but without the URL they were on when clicked.

I have also played with the getCurrentItem part of the code too - with limited success.
https://www.wix.com/code/reference/wix-dataset.html#getCurrentItem

Thanks,
Andrew

@andrew23432 You can get the page info from wix-location. Here is some code to try out :wink:

import wixLocation from 'wix-location';

$w.onReady(function () {
 //TODO: write your page related code here...
    $w('#dynamicDataset').onReady(() => {
 let dataCollectionName = wixLocation.prefix;
 let dynamicPageFilterItem = wixLocation.path[0];
        console.log(`${dataCollectionName}/${dynamicPageFilterItem}`);
    });
});

@stevesoftwareservice Hi Steven, unfortunately this code is not working. Maybe I am doing something wrong. Could you please help me, please contact me. Thank You

Andrew, could you find the solution for your issue? I have the same problem

hi i am using wix studio, and am stuck with same problem, i have tried with many codes not working, can someone pls help