This topic is locked
[SOLVED]

 Hide Back To List Button On Edit Record Page

1/22/2013 2:34:35 AM
PHPRunner General questions
D
dkasing author

How can I hide the Back to List button on the Edit Record page?
Thank you.
Sincerely,

Douglas

C
cgphp 1/22/2013

Delete it from the editor.

Sergey Kornilov admin 1/23/2013

Another option. If you waqnt to hide this button dynamically based on some sort of condition use BeforeDisplay event of the page in question and the following code:

$xt->assign("back_button", false);
D
dkasing author 1/23/2013

Dear Cristian:

Thank you for your reply. Sorry I should have clarified in my original post that I wanted to remove it without deleting it in the editor. Your second option is exactly what I wanted to do.
Thanks again.
Sincerely,

Douglas

D
dkasing author 1/23/2013

Dear Sergey:

Sorry I just realized the second suggestion was from you. Thank you very much.
Sincerely,

Douglas

rbh 1/30/2013



Another option. If you waqnt to hide this button dynamically based on some sort of condition use BeforeDisplay event of the page in question and the following code:

$xt->assign("back_button", false);



Just to clarify. I added custom button with caption "Import_Button". saved it, opened editor altered caption to import. Looking in html mode I've got a button with id=Import_Button ('A text' is now import as aspected). It's the id of button I use further?

$xt->assign("Import_Button", false);


Discovered that altering caption of buttons didn't alter id of button once I saved it.. (to my suprise). Easy to make mistake and assume button is named what you put in "caption field"