As the title suggests, is it possible to pass an entry ID in order to set a parent for the submitted entry?

  • 1
    Have you tried to include a parentId parameter? – Robin Schambach Apr 30 '18 at 9:16

The Guest Entries plugin checks for a parentId value in POST and passes that on to saveElement, so that should be all you need to do: https://github.com/craftcms/guest-entries/blob/v2/src/controllers/SaveController.php#L216

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.