FIX. The method 'name' does not exist on 'Form'

Can this be changed to `elseif` please?