Condition to show/hide is not working while editing the submission