For the attributes you want hidden you don't use attribute_edit_gui but a pair of hidden inputs. And don't forget to do this for all the attributes of the object.
And for the attribute you want to be displayed and edited you do use attribute_edit_gui.
See the other post I mentioned for details.
--
Nothing is impossible. Not if you can imagine it!