The best way to do with configuration is using toggle applet.
The other way is to write browser script to achieve the logic.
Below code can be used to hide a form applet control ('AAA')
var vControl = this.FindControl( "AAA" );
vControl.SetProperty( "Visible", "FALSE" );
vControl.SetLabelProperty( "Visible", "hidden" );
Below code can be used to show a form applet control ('AAA')
var vControl = this.FindControl( "AAA" );
vControl.SetProperty( "Visible", "TRUE" );
this.FindActiveXControl( "AAA" ).style.visibility = "visible";
vControl.SetLabelProperty( "Visible", "visible" );
add a control user property for the control - 'AAA', with the name 'useLabelID' (no quotes) and the value: 'TRUE' (no quotes).
The other way is to write browser script to achieve the logic.
Below code can be used to hide a form applet control ('AAA')
var vControl = this.FindControl( "AAA" );
vControl.SetProperty( "Visible", "FALSE" );
vControl.SetLabelProperty( "Visible", "hidden" );
Below code can be used to show a form applet control ('AAA')
var vControl = this.FindControl( "AAA" );
vControl.SetProperty( "Visible", "TRUE" );
this.FindActiveXControl( "AAA" ).style.visibility = "visible";
vControl.SetLabelProperty( "Visible", "visible" );
add a control user property for the control - 'AAA', with the name 'useLabelID' (no quotes) and the value: 'TRUE' (no quotes).