• 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: Jump to anchor

Jump to anchor 16 years 5 months ago #5660

Hi,

is there any possibility to jump to an anchor, after clicking the submit button?

Regards,
Benjamin Bender
The administrator has disabled public write access.

Re:Jump to anchor 16 years 4 months ago #5705

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Hello,

This might be a long shot but it should work. Go to the Scripts tab and paste this code at the on form display area:
$anchorname = 'myanchor';
$formLayout = str_replace('action=\"\"','action=\"index.php?option=com_rsform&formId='.$_POST['form']['formId'].'#'.$anchorname.'\"',$formLayout);

Just replace myanchor with the actual anchor name you use.
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:Jump to anchor 15 years 8 months ago #8168

Hi Octavian,

when i use your code i get:

Notice: Undefined index: form in /home/eurobest/public_html/components/com_rsform/controller/functions.php(836) : eval()'d code on line 2

Notice: Undefined index: form in /home/eurobest/public_html/components/com_rsform/controller/functions.php(836) : eval()'d code on line 2

thanks,
The administrator has disabled public write access.

Re:Jump to anchor 15 years 7 months ago #8379

  • leolll
  • leolll's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Somewhere in your Form Layout code you should have this:
<a name="rsform"/>

Then, under the Scripts tab of your form put this in "Script called on form display":
$anchorname = 'rsform';
$formLayout = str_replace($u,$u."#".$anchorname,$formLayout);

That works perfectly for me.
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!