PDA

View Full Version : Conditional screen display


John Fligg
09-24-2004, 06:10 PM
I want to display one of 2 license screens depending on the selection of a country. In SUF6 this was easy - just use the ScreenCondition box.

I tried putting the following in the preload area of the screen but it does not work. Any ideas please?

result = SessionVar.Get("%ListBoxSelection%");
if result ~= "United Kingdom" then
Screen.End();
end

I LOVE SUF7 but it really is like starting again. Very powerful but just in the area you want to convert from SUF6 it fails. Not to worry.

John

John Fligg
09-24-2004, 08:40 PM
I think I sussed it out - because SUF7 is so different from 6 it took some working out but I think if I test my variable on the last screen before the 2 install screens, then in the next button action of that screen use Screen.Jump and jump to the relevant screen.

Then in each of the Next button actions of the install screen I simply say Jump.Screen (InstallFolder)

I think that's how it works. Got a problem getting my variable but I can suss that one out easily enough.

However if anyone has any other ideas please feel fre ...

JXBURNS
09-25-2004, 05:41 AM
Exactly how I do it - John