alco
Posts: 79
Joined: Thu Nov 18, 2010 5:02 pm

Hyperlink text on checkbox

Is there a way to make a checkbox's text able to have hyperlink in any or all parts? I've seen the workaround where the checkbox's text is removed and a Hyperlink control is added next to it w/c contains the text. The problem w/ this is that when you click on the normal part (non-hyperlink part) of the text, there is no way to make the checkbox change into "checked" state.
Catalin
Posts: 6958
Joined: Wed Jun 13, 2018 7:49 am

Re: Hyperlink text on checkbox

Hello,
Is there a way to make a checkbox's text able to have hyperlink in any or all parts?
I am afraid that this is not possible. Not quite sure if the Windows Installer itself would allow this.

In what regards the workaround, I would proceed as it follows:

- the text that you do not want to be a hyperlink, make it part of the checkbox control (so the checkbox state is changed when you press it)

- the text that you want to be a hyperlink, make it part of the hyperlink control

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alco
Posts: 79
Joined: Thu Nov 18, 2010 5:02 pm

Re: Hyperlink text on checkbox

Catalin wrote: Fri Sep 11, 2020 1:17 pm In what regards the workaround, I would proceed as it follows:

- the text that you do not want to be a hyperlink, make it part of the checkbox control (so the checkbox state is changed when you press it)

- the text that you want to be a hyperlink, make it part of the hyperlink control
The problem w/ this is the localization and the differences in the size of text based on translation, w/c can be difficult to manage.
Is it possible to relay this to the devs in case they can think of a solution or a better workaround?
Catalin
Posts: 6958
Joined: Wed Jun 13, 2018 7:49 am

Re: Hyperlink text on checkbox

Hello,

I have already discussed this with our development team and unfortunately we were not able to find a better workaround.

I think the best workaround here is the one you specified in your first post, although the checkbox will not be enabled when the normal part of the hyperlink is selected. Now, it honestly depends on the size of your hyperlink control. Normally, if the hyperlink control is made up of, let's say, two words, the user will most likely click on the hyperlink part. However, if the text's size is larger (as in more words), the user may completely ignore the hyperlink.

If you want the checkbox state to always become enabled during the install, perhaps you could try to disable the "Next" button until the checkbox is checked.

Hope this helps somehow.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”