• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: what page user came from

what page user came from 16 years 4 days ago #7295

  • dmmsmith
  • dmmsmith's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hello,
When a user fills out the form is it possible to list in the email from which page the user was on when he decided to fill out or form?Many thanks!
The administrator has disabled public write access.

Re:what page user came from 16 years 13 hours ago #7325

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Hello,

Yes, this is possible. You will have to paste this code in the Scripts called on form display area:
foreach($fields as $i=>$field){
    if($field->name=='fullname'){
        $fields[$i]->default_value = $_SERVER['HTTP_REFERER'];
    }
}
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Re:what page user came from 15 years 11 months ago #7420

  • dmmsmith
  • dmmsmith's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Works like a dream Alex! Thanks ever so much as always!
The administrator has disabled public write access.

Re:what page user came from 15 years 8 months ago #8320

  • oliver
  • oliver's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hi,
sorry for being ignorant, but I don't exactly know where to add this and what other settings I would need (create a hidden field?)
Are there any prefix I need to ad (like <scripttype='text/javascript'>) or similar.

Thanks
The administrator has disabled public write access.

Re:what page user came from 15 years 7 months ago #8611

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Hello,

You can simply add a hidden field named "fullname" (for example). You will have to place the script provided above in the Scripts called on form process area (no other tags required).
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!