Jump to Content
LocomotiveCMSGuidesDiscussionSupport us!v2
GuidesBlogDiscussions
GuidesDiscussionSupport us!v2Log InLocomotiveCMS
Log In

Discussions

Ask a Question

Creating related objects via form

Hey Everybody, I have a form with used for public submission. That form is placed on the `event` page and creates an `open_subscription` and `open_subscription` belongs_to `event`. Now the issue I have is that it creates the `open_subscription` entry but the event field stays empty. I have tried everything I could think of but still no success. Has anyone worked with forms that create related objects? How did you implement it? Any suggestions? Here is a gist with my code: https://gist.github.com/DonKoko/ff8d59d42d9357ef5cb0fc6545d30876
content_typepublic_submissionbelongs_to
Posted by Nikolay Bonev almost 7 years ago
  • Recent
  • Unanswered
apibelongs_toblockscallapicartclonecoalcontent_entriescontent_entrycontent_typecontent_typesdeployecommercegalleryhostinghtmlidjsonlayoutsmany_to_manynilclassorder_bypagespublic_submissionsectionsspamtext_formattingto_symwagonwith_scope