..."> ...">

Form - submit to URL - post request doesnt contain full origin path

tibor.brunclik2
12 Posts
tibor.brunclik2 posted this 11 May 2022
Ask a Question

Hello,

I am trying to extract the origin URL as a "campaign". But after inspecting the post request after submitting the form, Request Header > Origin is only base URL "https://example.com/". I need to send full origin URL like this "https://example.com/page-where-im-now". After that I can parse it to my API but im not sure where I can edit the script for "URL submit".

Please help :)
Best regards

Hello, I am trying to extract the origin URL as a "campaign". But after inspecting the post request after submitting the form, Request Header > Origin is only base URL "https://example.com/". I need to send full origin URL like this "https://example.com/page-where-im-now". After that I can parse it to my API but im not sure where I can edit the script for "URL submit". Please help :) Best regards
Vote to pay developers attention to this features or issue.
11 Replies
Order By: Standard | Newest
tibor.brunclik2
12 Posts
tibor.brunclik2 posted this 12 May 2022

Btw I dont ask for some custom script, I only need to know what component is used for the POST request when submiting form via URL so I can add Full / Absolute URL path to the request.

Btw I dont ask for some custom script, I only need to know what component is used for the POST request when submiting form via URL so I can add Full / Absolute URL path to the request.
Support Team
Support Team posted this 12 May 2022

Hi,

Do you mean that you want to add custom link to the Form action attribute? You can add the link here:

form-url.png

If you mean something different please provide more details.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Do you mean that you want to add custom link to the Form action attribute? You can add the link here: !form-url.png! If you mean something different please provide more details. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
tibor.brunclik2
12 Posts
tibor.brunclik2 posted this 12 May 2022

Hi Olivia,

thank you for your reply! :)
That is not what I mean - I already have my own API so I have URL there to collect the data. Issue however is that the POST request, that the form is sending upon clicking "submit", the request itself doesnt contain the absolute / full URL path - meaning it doesnt contain https://example.com/page-where-im-submiting-form but only https://example.com/. I need to know which component of NicePage and what function is sending the POST request for "Submit form via URL" so I can edit that function and add full URL path as origin / referrer.

Please let me know if I should clarify this more.

Thank you very much!
Best regards

Hi Olivia, thank you for your reply! :) That is not what I mean - I already have my own API so I have URL there to collect the data. Issue however is that the POST request, that the form is sending upon clicking "submit", the request itself doesnt contain the absolute / full URL path - meaning it doesnt contain https://example.com/page-where-im-submiting-form but only https://example.com/. I need to know which component of NicePage and what function is sending the POST request for "Submit form via URL" so I can edit that function and add full URL path as origin / referrer. Please let me know if I should clarify this more. Thank you very much! Best regards
Support Team
Support Team posted this 13 May 2022

Hi Tibor,

Do you mean these URLs?

origin-referer-links.png

The request headers are defined by the browser. Please check the referrer Policy:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy

if you mean something else please provide a screenshot of the request with marked URLs.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Tibor, Do you mean these URLs? !origin-referer-links.png! The request headers are defined by the browser. Please check the referrer Policy: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy if you mean something else please provide a screenshot of the request with marked URLs. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp

Last edited 18 May 2022 by Support Team

tibor.brunclik2
12 Posts
tibor.brunclik2 posted this 13 May 2022

Hi Olivia,

that is exactly what I mean! Thank you!
I need the referer to be the page, where the form is being submitted. So if Im submitting the form from "http://example.com/some-page, I need the "referrer" to display as "http://example.com/some-page". Request headers can definitely be defined in the request configuration. I just have to find it. If you could point me to where I can edit the request configuration, that would be great! :)

Thanks
Regards

Hi Olivia, that is exactly what I mean! Thank you! I need the referer to be the page, where the form is being submitted. So if Im submitting the form from "http://example.com/some-page, I need the "referrer" to display as "http://example.com/some-page". Request headers can definitely be defined in the request configuration. I just have to find it. If you could point me to where I can edit the request configuration, that would be great! :) Thanks Regards
tibor.brunclik2
12 Posts
tibor.brunclik2 posted this 14 May 2022

For example I dont really need to add current url path to the "referrer" attribute, I could create a different attribute and put the url there.

For example I dont really need to add current url path to the "referrer" attribute, I could create a different attribute and put the url there.
Support Team
Support Team posted this 16 May 2022

Hi Tibor,

Please check the Referrer Policy:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
It explains how to affect Referrer links. The HTML form itself does not support attributes where you can set this.
Please let us know if you have any further questions.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Tibor, Please check the Referrer Policy: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy It explains how to affect Referrer links. The HTML form itself does not support attributes where you can set this. Please let us know if you have any further questions. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
tibor.brunclik2
12 Posts
tibor.brunclik2 posted this 16 May 2022

Hi Olivia,

I am not interested in editing HTML. Theres a javascript/php function that makes such requests. I am only asking if you could tell me what function in nicepage module it is so I can edit it myself. As I was searching more I saw that the POST request initiator might be this file: /media/jui/js/jquery.min.js but there are more than 1000 functions, that is why im asking here on the forum.

Kindly asking if you could ask your developer team Im sure they would know right away what Im looking for.

Many thanks for the support!
Best regards

Hi Olivia, I am not interested in editing HTML. Theres a javascript/php function that makes such requests. I am only asking if you could tell me what function in nicepage module it is so I can edit it myself. As I was searching more I saw that the POST request initiator might be this file: /media/jui/js/jquery.min.js but there are more than 1000 functions, that is why im asking here on the forum. Kindly asking if you could ask your developer team Im sure they would know right away what Im looking for. Many thanks for the support! Best regards

Last edited 16 May 2022 by tibor.brunclik2

Support Team
Support Team posted this 18 May 2022

Hi Tibor,

The Referrer URL is not controlled by Nicepage scripts including the jquery library. The POST request is built by the browser.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Tibor, The Referrer URL is not controlled by Nicepage scripts including the jquery library. The POST request is built by the browser. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
tibor.brunclik2
12 Posts
tibor.brunclik2 posted this 27 May 2022

Hi Olivia,

is there any way I can add some input like "Subject" or something with the custom form action?
We also need to send some other parameters that the end user should not see - for example what is the subject of the form (i.e. name of the current page). Please see attachment.

Or if we could at least add another input field that would be invisible OR read-only.

Please help.
Thank you very much
Regards

Hi Olivia, is there any way I can add some input like "Subject" or something with the custom form action? We also need to send some other parameters that the end user should not see - for example what is the subject of the form (i.e. name of the current page). Please see attachment. Or if we could at least add another input field that would be invisible OR read-only. Please help. Thank you very much Regards
Support Team
Support Team posted this 30 May 2022

Hi Tibor,

In general, Nicepage does not provide the option to add hidden fields to the form (with the type "hidden"). But if it is ok, you can add a simple Input element and hide it with the custom CSS by name attribute (e.g. text)

input[name="text"] {
 ...
}

Unfortunately, you cannot edit or add new attributes to the fields except for the name and placeholder.
Note that Nicepage provides an HTML element where you can insert any custom HTML, CSS, and js to implement the desired form.

Please let us know if you have any further questions.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Tibor, In general, Nicepage does not provide the option to add hidden fields to the form (with the type "hidden"). But if it is ok, you can add a simple Input element and hide it with the custom CSS by name attribute (e.g. text) input[name="text"] { ... } Unfortunately, you cannot edit or add new attributes to the fields except for the name and placeholder. Note that Nicepage provides an HTML element where you can insert any custom HTML, CSS, and js to implement the desired form. Please let us know if you have any further questions. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments