I am using portal.show event in the system wide JavaScript customization. But this event only works on the default portal. When I move to my second or third portal, event does not fire. If I go back to my default portal, event fires.
Is there any way to make this event fire on other portals too?
Code / Attempts
I used this simple code just to check when the event fires (it shows a dialog):
I now understand that you're referring to additional Portals created through the Portal Management feature rather than Space Portals.
According to the official Kintone documentation, the portal.show event does not trigger on the second or subsequent Portal pages. This explains why your code works on the preset Portal but not on the additional Portals.
While this limitation is not explicitly mentioned in the English documentation, it is noted in the Japanese version:
Unfortunately, I could not find an officially documented JavaScript event that would provide the same functionality on additional Portals.