CUSTOM MODULE > Allow creating foreign items from other existing Custom Modules > Input Form Issue

I have a Custom Module and have selected the option “Allow creating foreign items from other existing Custom Modules”.

I have a user submitted form for the child module and I want to set the parent id, but just adding the field to the input form doesn’t seem to work:
<input type="text" name="prop_ParentId" value="parent's id entered here">

Is the field called something different?

Good question @shannonlynd. I don’t think the ‘foreign item’ relationship can be created like this, from the front-end user-submitted form. I think it’s an admin function… but I’m not 100% sure and I’d like to be proven wrong.
Might need some input from @vlad.z or the team on this one…

Hi @shannonlynd, you need to use this code
<input type="hidden" name="ParentId" value="parent's id entered here">.
I’m afraid you made a mistake in the input name.

1 Like

That worked!!! Thanks so much. For any of you following this, I put “prop_” in the name; but didn’t need it.

Thanks!

1 Like

Ah, this is awesome!

1 Like