This topic is locked

Back to List button on Add/Edit Pages

11/24/2008 1:40:10 PM
PHPRunner General questions
hfg author

With version 5 of phpr, the "Back to List" button works a bit different. The code from visual editor is below:
{BEGIN back_button}<SPAN class=buttonborder><INPUT class=button type=button value="Back to list" {$backbutton_attrs}></SPAN>{END back_button}
Is there a way I can change the function of the button to go to a different list than the default?
Not a big deal though
thanks

J
Jane 11/25/2008

Hi,
you can change link in the Edit page: Before display event on the Events tab:

$xt->assign("backbutton_attrs","onclick=\"window.location.href='TableName_list.php?a=return'\"");