chris.paschen
Chris Paschen
I have a custom PHP script that is running when the form is saved (onAfterProcess).
I also have a custom PHP script that needs to run onLoad.
However, I don't want to run the onLoad script IF the page is reloading itself (i.e. if the onAfterProcess has just run and returned to the same form).
Is there any way to make this happen?
I noticed there isn't any 'Condition' on PHP (like redirect plugins).
Is there a way within the PHP plugin's code area that I could get the reference of the previously displayed page (to determine if it was 'self')?
(Possibly someway related to how we use "{$_SERVER->REQUEST_URI}" on the redirect to redirect to the same page. Actually, that is what is causing the page reload - so maybe that redirect can 'feed' info to the onLoad script?)
Any ideas would be appreciated.
I also have a custom PHP script that needs to run onLoad.
However, I don't want to run the onLoad script IF the page is reloading itself (i.e. if the onAfterProcess has just run and returned to the same form).
Is there any way to make this happen?
I noticed there isn't any 'Condition' on PHP (like redirect plugins).
Is there a way within the PHP plugin's code area that I could get the reference of the previously displayed page (to determine if it was 'self')?
(Possibly someway related to how we use "{$_SERVER->REQUEST_URI}" on the redirect to redirect to the same page. Actually, that is what is causing the page reload - so maybe that redirect can 'feed' info to the onLoad script?)
Any ideas would be appreciated.