Hi,
I want to use a PowerShell script to decide to which dialog the Next-button on a dialog goes forward to. I essentially want to skip specific dialogs when certain criteria's are fulfilled.
My problem now is that depending on the conditions I want to skip either dialog X, Y, and Z, two of them, or all of them. The back buttons of the later dialogs also shall skip those dialogs when going back.
Thus, to achieve this, I wanted to use PowerShell to solve this in a way that does not clutter all the next/back buttons. Because in the future we will add even more dialogs that we want to skip depending on our conditions.
But, is there a way to go to a specific dialog using a custom action? I only could find the hard-coded way where I select in advance at the custom action to which dialog it should navigate when a condition is fulfilled. But instead, I need a single custom action that navigates to dialog X or Y or Z depending on e.g. a property. Otherwise I would need to add to each Next- and Back-button as many events as there are dialogs to be skipped, which is just not maintainable in the long term as will keep expanding this.
I tried implementing this using a property per dialog, that I set to either "0" or "1" and then using the "Show Only If.." option. But that does only work well if there is just a single dialog to skip. It is just not programmed to be used for multiple dialogs it seems. I need to able to skip two or more dialogs too.
Best regards,
Johannes