Conditions: Show and hide logic not working properly