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

How do I use members as author in Channel Form

How Do I?

Kreativ's avatar
Kreativ
16 posts
8 years ago
Kreativ's avatar Kreativ

After users are logged in, they can submit a channel form, but it looks like it’s only submitting it with default author (Channel settings). How can I make the author is the the member that submitting the form? I know Johnathan Waters had a plugin for this in EE2, but have not found a solution for EE3

Using EE 3.4.2

       
annapoli's avatar
annapoli
2 posts
8 years ago
annapoli's avatar annapoli

Hi there,

to perform this, I’ve simply added the hidden field inside the channel form:

<input type="hidden" name="author_id" value="{visitor_member_id}" />

PS: I’ve used here the Visitor module to populate the current logged-in member id value, however, you are free to set up one by your own way.

Cheers

       

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.