Setup: Edit Actions for P2P
In this doc you can find instruction on how to do the initial setup to allow users to edit their action in CS P2P.
SetupGeneral formssettings and pages
In the main WordPress sidebar settings you can find the general setting at CampaignSuite > P2P
Here you can set the following:
- Slug for edit page: What should the users add to the url to enter the edit or authentication form, e.g. /edit
- Send link content page: The page that contains the Authenticate form (see below)
- Edit action content page: The page that contains the Edit action form (see below)
- Invalidate token after minutes: The number of minutes before a token (edit link) is valid, so how much time does a user have to use their magic link.
- Sessions are valid for minutes: How many minutes will a session remain valid, so how long can a user use the edit form before it needs a new magic link.
To keep the frontend as flexible as possible, the plugin uses pages to the show the login and authentication form. Once these pages are selected in the settings, they can not be accessed directly anymore (via their slugs) and will be marked in the overview as such.
Authenticate / Login page
This page needs at least the Authenticate from, but can also contain an element that show the notifications regarding the login process, like expired session or invalid tokens. If the element is not added the messages will be prepended to the page content, but this can result in unexpected styling so the use of the element is preferred.
Edit Action page
This page needs at leas the Edit action form, but can also contain a stop editing button. This button invalidates the session and returns the user to the action page.
Forms settings
Create action form
Go to Settings > P2P on the gravity form that used to create the Actions.
- Turn on the
This is a P2P formtoggle - In the
Select the form typedropdown select Create action form - The
Create action fieldsection should appear. Select a field in theSelect the field where the email of the creator is entered.dropdown. This is most likely the email field in the form.

Authenticate form
This is the form that is used to authenticate the user by entering the email that they have used to create the action. This looks up the entry and checks the field selected in the previous step to determine if the user has entered the correct email. Create a new form and add at least one field that matches the field selected in the previous step (probably an "email" field).
If properly setup, this form checks the entered field against the field that is used to create an action. If an email is entered that doesn't match, the entry is marked as spam and all action & notifications are disabled. The confirmation is not changed, so a user can't see if a correct value is entered based on the confirmation.
To set up the form go to Settings > P2P on the gravity form that used to create the Actions.
- Turn on the
This is a P2P formtoggle - In the
Select the form typedropdown select Authenticate form - The
Authentication fieldssection should appear. Select a field in theSelect the field that is used to verify the creator's email.dropdown. This is most likely the only field in the form.

If a user successfully authenticates the P2P Access URL meta field is filled with the full URL that gives access to the edit form. This meta field can be used in custom (feed) actions to send to the user.
Update action form
Create a form that has a field for all the content you want users to be able to update. Current supported fields that can be added are:
- Content (the main content of the action)
- Target amount (used in the counters)
In most cases the field will be duplicates of these fields that are used in the create acton form.
To setup pre-filling for these fields go to Settings > P2P on the gravity form that used to create the Actions.
- Turn on the
This is a P2P formtoggle - In the
Select the form typedropdown select Update action form - The
Update fields prefillsection should appear. Select for each type what field should be pre-filled with the current value.
To let these field update the post type, create a new feed action with the P2P | Update an Action type. If the feed action is saved once, a Settings panel will be shown with options to map these fields to the right content.





