Live Helper Chat support forum.. Old google groups forum can be found here

You are not logged in.

Announcement

#1 2021-01-12 10:15:36

elplaza
Member
Registered: 2020-12-07
Posts: 25

Add hidden referer field to form

Hi all,
when widget is opened but there aren't online users,
I show a form to the visitor.

After form is submitted I lost every info about page referer so I'm trying to add a hidden field to have this info (identifier is already busy with other info).

Adding hidden field is the right way?
If so, how can I add this hidden field to form and set its value to referer?

Thanks in advance,

Offline

#2 2021-01-12 10:18:48

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,415
Website

Re: Add hidden referer field to form

Usually offline form stores chat with itself and sends e-mail unless this function is disabled and you can see visitor info there.
https://doc.livehelperchat.com/docs/cus … -variables

Offline

#3 2021-01-12 10:43:40

elplaza
Member
Registered: 2020-12-07
Posts: 25

Re: Add hidden referer field to form

Thanks for the answer remdex but I make a mistake, there are online operators.

The situation is:
- prechat show 2 possibilities:
  - recall me
  - start chat

If visitor click on recall me was loaded the form but I'm loosing all referer info when it was submitted

Offline

#4 2021-01-12 10:44:35

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,415
Website

Re: Add hidden referer field to form

Sorry, but I don't understand your problem.

Offline

#5 2021-01-12 10:53:47

elplaza
Member
Registered: 2020-12-07
Posts: 25

Re: Add hidden referer field to form

I have:
- external site page containing widget
- widget load form in prechat

When form is submitted, the only info I have is the submitted url, otherwise something like /index.php/form/formwidget/.
Instead I have to know the referer info, otherwise the url of external site page containing widget.

Offline

#6 2021-01-12 10:56:03

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,415
Website

Re: Add hidden referer field to form

Form module is almost not maintained so documentation i pasted is not relevant. So you will have to make up something smile

Offline

#7 2021-01-12 11:22:59

elplaza
Member
Registered: 2020-12-07
Posts: 25

Re: Add hidden referer field to form

Ah ok cry

Last question:
there is a way to override lhc_web/lib/core/lhform/lhformrenderer.php ?

This file is not in a module so . . .

Offline

#8 2021-01-12 12:19:08

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,415
Website

Re: Add hidden referer field to form

Offline

Board footer