Discussions

Ask a Question
Back to All

Populate associations from public submissions

Hi,

Based on the contact form guide I've made a form that adds some details, and tries to add associated data (through checkboxes). The form works fine until I check and boxes, then I get an "undefined method `association_ids=' for #<Locomotive::API::Forms::ContentEntryForm>"

Is this possible through public submission?

Thanks

Lawrence

To answer my own question in this dead forum. The checkbox attributes should:
content[model_name][]
not
content[model_name_ids][]

I'm trying to do a similar thing, could you explain a little more about how you did this?