I checked the documentation for creating a form but it only shows simple examples for a text field.
When I try to create a form with a field of type “rte”, it doesn’t show the value or a rich text field. Also, an image simply shows a browse button and not the “upload file” like in the rest of the control panel.
How do I properly set the array so it creates a rich text field, image field or grid field (for multiple images)?
Sorry about that, hope to be updating that documentation soon. I’ve already helped you with the RTE in the bug tracker so I hope that got you going there, and unfortunately I think the image option is kind of buggy at the moment, hopefully will get to fix soon. As for the Grid, the Table service docs talk about how to actually create the field. Then you’ll insert it into the form view by specifying an html field and pipe the raw HTML in there, and set the wide option as documented in the shared form docs.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.