Page origin from form to ticket

Hi,

how can I know the origin page of my form used in ticket system?

I can see on conversation>in box but not on ticket

THank you

Hi @TFD,

This is one of those things where it’s hard to believe that there isn’t a straightforward solution. Ticket records don’t have an original source property, only a Source one which lets you know that it was created from a form. (That much you knew already.) Other than that, the ticket record isn’t giving away the origin.

If you want to be able to tell apart which forms/pages tickets were created on, your best option, as far as I know, would be to work with multiple forms (unique to just one page) and submitting a hidden field value that includes their origin. For example, your support page form would include a custom hidden field Submission origin with the default value “Support page”, your knowledge base form would have the value “Knowledge base”. Not ideal since it would not give you this information retroactively but it’s something.

Hope this helps!

Hi, thank you for your reply.

Looking for around I find this possible solution to add on the form,

for some people I seeen work, for me just now nope.

Any idea?

onFormReady: function($form) {
$(‘input[name=“actualurl”]’).val(window.location.href).change();

Hi @TFD,

You’re right, I hadn’t thought of that. There is a similar thread right here where you can find an example of the form embed code you would use.

In that thread, @Ben_M explains nicely how you can use custom embed code / Javascript to get the URL or title of the page and populate a hidden field.

Let me know if that works for you!