If database textfield is empty, container box collapse

What you did in the picture ,you showed was - >

  1. Made a repeater (with only one container)
  2. Added the first box and third box outside the repeater

Instead of this !!! →
In the repeate r add a box or text,