redseujac
Posts: 32
Joined: Thu Feb 10, 2011 7:16 pm

Conditional hyperlink

In a dialog of my multilingual AI project I have a hyperlink pointing to an URL (my website).

My website is also a multilingual website (Dutch - English - French): http://www.mysite.be (= Dutch), http://www.mysite.be/en (= English), http://www.mysite.be/fr (= French).

What I want to achieve is the following: the URL the hyperlink is pointing to, should be different depending on the language of the installation, i.e.

- http://www.mysite.be if the installation language is Dutch
- http://www.mysite.be/en if the installation language is English
- http://www.mysite.be/fr if the installation language is French.

I've searched the AI help but couldn't find the way to realize this.

Is it possible after all and how to achieve this?
redseujac
Posts: 32
Joined: Thu Feb 10, 2011 7:16 pm

Re: Conditional hyperlink

OK, in the meantime I've found a solution :D

I created 3 different custom actions ("Open URL") with the desired 3 different URL addresses.

On the dialog I created a PushButton ("Mysite") with 3 new Published Events with the matching custom actions as "Argument" and as "Condition" ProductLanguage = <LangId>.

It works like a charm 8-)

If anybody knows a better way to achieve the aimed result, please let me know here.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Conditional hyperlink

Hi,

You can use the hyperlink control too, this way. You add 3 hyperlink controls at the same position, so they overlap each other.
Then you select each control one by one and go to the "Control Conditions" tab. There you need to add two control conditions for each hyperlink
to show and hide it based on the same ProductLanguage property.

This way only one control will show up during the installation, i.e. the one with the matching language.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”