This topic is locked
[SOLVED]

 Error Message "Back to menu" button

6/10/2020 9:16:34 AM
PHPRunner General questions
J
jaffleck author

I have a Custom add event that in some cases I want to display an error message to the user via the $error variable in the event. But I don't want the "Back to menu" button to be displayed. Is there a way to hide this button?
PHP Version: 10.4

Build #: 35096

Sergey Kornilov admin 6/10/2020

In regards to hiding a button - check this:

https://xlinesoft.com/phprunner/docs/hideitem.htm

J
jaffleck author 6/10/2020



In regards to hiding a button - check this:

https://xlinesoft.com/phprunner/docs/hideitem.htm



Thanks so much for the quick answer. However, that doesn't seem to work. I'm guessing that the button starts out hidden and something in the error processing routine sets it to visible, thereby overriding my call to $pageObject->hideItem("backToMenuButton1") - which I have tried in the Before process, Custom add, Process record values, and Before display events. Could that be the case?

J
jaffleck author 6/11/2020



Thanks so much for the quick answer. However, that doesn't seem to work. I'm guessing that the button starts out hidden and something in the error processing routine sets it to visible, thereby overriding my call to $pageObject->hideItem("backToMenuButton1") - which I have tried in the Before process, Custom add, Process record values, and Before display events. Could that be the case?



I solved my problem by modifying the html code in the editor and commenting out the back to menu button.