We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Form fieldtype unable to render form in dynamic template

Kevin Kirchner September 2, 2020 by Kevin Kirchner

One of my blueprints used a type: form field. In my antlers template, I confirmed it was getting the form entry object, BUT when I tried this {{ form:create :form="my_form_field" }} I would get this error: Object of class Statamic\Forms\Form could not be converted to string. As soon as I changed my field to type: text (so it treated is as a string now and not a form object), the above form syntax worked!

It seems like a bug to me, but I wanted to double-check to make sure I wasn't doing something obviously wrong with the form fieldtype.

Thanks!

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
2 Replies
2 Followers