0

So I have the switch for Enable entries by Default set to OFF for Guest Entries and a channel.

Given this value="1" for input field name="enabled" on Guest Entry submission I always get entry not updated in corresponding field with desired value.

{# Enable entry #}
<input type="hidden" name="enabled" value="1">

I think the channel switch for Enable entries by default should be on as guest entries doesn't have control over that?

1

Currently, that won't work.

The Guest Entries plugin looks at the plugin's setting for whether that entry should be enabled for the given section or not, not anything from $_POST.

https://github.com/pixelandtonic/GuestEntries/blob/master/guestentries/controllers/GuestEntriesController.php#L227

1
  • So some plugin modification needs to be done. Thanks @brad Mar 4 '17 at 9:54

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.