We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Channel Form Multiple Relationship field append and overwrite

Development and Programming

premier's avatar
premier
35 posts
9 years ago
premier's avatar premier

Hi

I have a channel with a multiple relation ship field

So for example i might have say 5 entries assigned to the channel field out of a possible 50

I then have a channel form on my front end which allows me to update the entry with the rel field

So when the form is submitted i want to entry_id 700 to be added to the relationship field list

So now i would have 6 entries assigned after the form is submitted

My problem is that when the form is submitted it clears the previous 5 assigned entries and i only have the new entry assigned

is there away that when the form is submitted i can append the entry id to the previous 5 entries?

Thanks

{exp:channel:form channel="cpd" return="members/cpd/success/ENTRY_ID" logged_out_member_id="3" entry_id="{entry_id}”}

<input name=”cpd_members[data][]” type=”text” value=”700”>

<button type=”submit” class=”buttonlarge”>Submit</button>

{/exp:channel:form}

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.