Questions about Payment Form extension

Need Anchor Link for "goback" Button

  • chiappa
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago - 7 years 11 months ago #81343 by chiappa
Need Anchor Link for "goback" Button was created by chiappa
Showing the "Show Confirmation Step" for the Payment Form. When user clicks on the button to go back when they want to edit some of the details of the form, it takes them to the top of the previous page.

How can I have the goback button use an anchor link that goes directly to the correct form position?

This is confusing especially for mobile users if the form is not on top.
Thus the form disappears from view and user needs to search for it again.

this is what the button code looks like for me:



thank u.
Last edit: 7 years 11 months ago by chiappa.

Please Log in or Create an account to join the conversation.

  • chiappa
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #81345 by chiappa
Replied by chiappa on topic Need Anchor Link for "goback" Button
This was easy, already solved.

In ~/components/com_pmform/view/confirmation/tmpl/default.php

edit: lately i cannot post any code here on the forums. i always get this error message . see this link for my notes if someone is interested in this.

Added #pmform into the script above and "<a name="pmform"> </a>" where the form is located on the page.

Cheers.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc