We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sanjaydalvi
Posts: 7
Joined: Tue Sep 10, 2013 3:35 pm

How to display/hide static text based on checkbox

Hi,
I have 3 check boxes for 3 different process and on clicking the next button the dialog shows 3 static test. I need to show/hide the static text based on two condition
1) Whether check box in previous page is checked or not, AND
2) Whether the process for the clicked check box is running or not.


Please provide me with a solution.
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: How to display/hide static text based on checkbox

Hi
sanjaydalvi wrote:I have 3 check boxes for 3 different process and on clicking the next button the dialog shows 3 static test. I need to show/hide the static text based on two condition
1) Whether check box in previous page is checked or not, AND
This can be achived by adding a Control condition. More specifically, you can control the display of your static text by setting this condition:
  • Condition: CHKBOX1_PROP -- replace with your own name
    Action: Show
sanjaydalvi wrote:2) Whether the process for the clicked check box is running or not.
This can be achieved using the same mechanism explained above for 1).

First step is to add a Detect process predefined Custom Action without sequence.
Second step is to execute this custom action during the initialization of your dialog that displays the static text. To do this add an Execute custom action event into the Init Events of your dialog with the argument set to the custom action defined at step one.
Third and final step is to update the previously defined Control condition on your static text as explained at 1).

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”