This topic is locked
[SOLVED]

 View Page Change Back to List Button

12/2/2019 8:49:49 AM
PHPRunner General questions
M
mhollibush author

On the View Pages

I want to change the "Back To List" Button to go to the "previous" page
OR add a button next to it to go "Back To Previous Page".
Any help would greatly appreciated

Sergey Kornilov admin 12/2/2019

We have a built-in option to add Next and Prev buttons on Edit/View pages. Maybe you just use the built-in functionality and just move and rename the 'Prev' button?

M
mhollibush author 12/3/2019



We have a built-in option to add Next and Prev buttons on Edit/View pages. Maybe you just use the built-in functionality and just move and rename the 'Prev' button?


The issue is I have multiple links on data fields throughout the view and list pages...
example:

"task_list" page has a link in the "company field" that will take you to the view company_view page.. if you click "back to list" on the "company_view page" - it takes you to the "company_list" instead of the "task_list".
Looking to add a button "snippet" that will take you back to previous page...

M
Mark Kramer 12/4/2019



The issue is I have multiple links on data fields throughout the view and list pages...
example:

"task_list" page has a link in the "company field" that will take you to the view company_view page.. if you click "back to list" on the "company_view page" - it takes you to the "company_list" instead of the "task_list".
Looking to add a button "snippet" that will take you back to previous page...


Here is a jscript way.. onclick="window.history.go(-1)"; return false;

M
mhollibush author 12/4/2019



Here is a jscript way.. onclick="window.history.go(-1)"; return false;


Which would work if I could make that in to a button that would be global to the site ( have this placed next to the "back to list" button ) on every page that has the other button...

M
mhollibush author 12/22/2019



Which would work if I could make that in to a button that would be global to the site ( have this placed next to the "back to list" button ) on every page that has the other button...


Question:

How to I create a button to do this?

onclick="window.history.go(-1)"; return false;
I added the button and inserted the script, but its not doing anything

Where do I insert the code?

M
mhollibush author 12/22/2019



Question:

How to I create a button to do this?

onclick="window.history.go(-1)"; return false;
I added the button and inserted the script, but its not doing anything

Where do I insert the code?


I went a different way... may be the only way.... unless someone can tell me how to do it globally instead of inserting a snippet into each page.
Created a snippet in the buttons area on the view pages:



echo "<input type='button' class='btn btn-primary' value='Go Back' onclick='window.history.back(-1)' />";


If there is a easy way... Please let me know

HJB 12/23/2019



I went a different way... may be the only way.... unless someone can tell me how to do it globally instead of inserting a snippet into each page.
Created a snippet in the buttons area on the view pages:



echo "<input type='button' class='btn btn-primary' value='Go Back' onclick='window.history.back(-1)' />";


If there is a easy way... Please let me know


DESIGNER > COMMON PAGES > INSERT > CODE SNIPPET

M
mhollibush author 12/23/2019



DESIGNER > COMMON PAGES > INSERT > CODE SNIPPET


COMMON PAGES?

HJB 12/23/2019



COMMON PAGES?


View following IMGUR screenshot under https://imgur.com/a/6aR1q83 - VIEW page changes to make: https://imgur.com/vLeTO6e

M
mhollibush author 12/23/2019



View following IMGUR screenshot under https://imgur.com/a/6aR1q83 - VIEW page changes to make: https://imgur.com/vLeTO6e


What version of PHPRunner?

I don't see this option...

I am using 9.7

HJB 12/23/2019



What version of PHPRunner?

I don't see this option...

I am using 9.7


It's PHPRunner 10.3 - Build 34262. With true tons of else more features compared to 9.7, you should weigh an upgrade, moreover

v10.4 is knocking at the door too, by means of a soon coming BETA release, with more THIRD PARTY and REST API aboard.

M
mhollibush author 12/23/2019

Thank You.... Looks like an upgrade is in order.... Thanks for your help

HJB 12/23/2019



Thank You.... Looks like an upgrade is in order.... Thanks for your help


The question here is really NOT to somehow find a 9.7 version solution, but to keep track with

client's future requests, so, from this point of view, an upgrading to later 10.4 PHPRunner is

more likely meaning to "remain" to stay in business in years to come, or not.