I've created a dialog for installing a service. The user can select to install using the local system account or a specific user account. How can I enable the 'Next' button only if:
The local system radio button is selected
-or-
the specific user radio button is selected and the user account field has text and the password field has text.
Thanks.
Dialog Object Rules: Enable Next if three controls OK
Here you are:
IF (rbtnSpecificUser.Checked = True) THEN Next.Enabled := False;
IF (tbxAccount.Text <> ) THEN Next.Enabled := True;
IF (tbxAccount.Text = ) THEN Next.Enabled := False;
IF (tbxPassword.Text = ) THEN Next.Enabled := False;
IF (rbtnLocalSystem.Checked = True) THEN Next.Enabled := True;
As default local system radio button (rbtnLocalSystem) must be selected.
IF (rbtnSpecificUser.Checked = True) THEN Next.Enabled := False;
IF (tbxAccount.Text <> ) THEN Next.Enabled := True;
IF (tbxAccount.Text = ) THEN Next.Enabled := False;
IF (tbxPassword.Text = ) THEN Next.Enabled := False;
IF (rbtnLocalSystem.Checked = True) THEN Next.Enabled := True;
As default local system radio button (rbtnLocalSystem) must be selected.

