FinalPageActions: how to make one action dependent on the choice of another?

Answered

Comments

1 comment

  • Avatar
    juanjo

    It you are referring to dynamically disable (visually) the state on the checkboxes it is not possible. I you simply want to avoid executing the second action if the first is not selected, you could use:

    <finalPageActionList>
        <actionGroup>
            <progressText>First action Wraper</progressText>
            <actionList>
                <setInstallerVariable>
                    <name>first_action_executed</name>
                    <value>1</value>
                </setInstallerVariable>
                <showInfo>
                    <text>I'm the first action  and I'm executing!</text>
                </showInfo>
            </actionList>
        </actionGroup>
        <actionGroup>
            <explanation>(only executed if you also enable the first one)</explanation>
            <progressText>Second action Wraer</progressText>
            <actionList>
                <showInfo>
                    <text>I'm the second action  and I'm executing!</text>
                    <ruleList>
                        <isTrue>
                            <value>${first_action_executed}</value>
                        </isTrue>
                    </ruleList>
                </showInfo>
            </actionList>
        </actionGroup>
    </finalPageActionList>
    

Please sign in to leave a comment.