Can any body provide code snippet to get specific entity field in edit mode?
Let say we have 'field_myfield' (it's select box with some options and one is selected) on some node (nid:29). How can I programmatically get rendered form element (select box) with selected default value for some specific node/entity?

Comments

daiwik.addweb’s picture

You can use "field_attach_form" function for your purpose.

Hope this helps you.

Thanks!