Post form data to a specific user profile created using Advanced Custom Fields Pro

Looking to see if the following is possible with Gravity Forms and Advanced Custom Fields Pro.

Example Scenario

  1. A user with a subscriber role goes to www.website.com/form
  2. Subscriber fills out form and selects a user or profile from a dropdown
  3. The form data is then posted to that specific users page

It’s possible. But we’ll need more information to be able to give you any specifics about how to accomplish that.

For #2, you will have to populate a dropdown with your users or profiles. You can use this method to accomplish that:

Instead of get_posts() you will be using a WordPress function to get users and use that data in your dropdown.

For #3, what is the data, and what is a specific users ‘page’? Is someone being allowed to update another user’s profile?

Chris, I appreciate your help on this.

What is the data, and what is a specific users ‘page’?

DATA

Data consists of essentially a home visit checklist.

examples:

is the home clean? yes or no
is the backyard fenced in? yes or no
how many people live at the home? (enter in a number)
additional notes (text box)

PAGE

Page consists of a profile page of an existing dog or cat with pre-populated data already on it. The data from the home visit will append to the profile page in a new section. This data will not be visible by front end traffic to the site. Only visible on profile pages to logged in administrators.

Is someone being allowed to update another user’s profile?

In the scneario described above, yes. Volunteer submitted data will add to the existing dog or cat profile page.

1 Like

Chris,

Just following up on this.

Based on the updated info you requested, is this possible?

Chris, do you need any further info from me in order to answer the question I have?

It sounds like you want to use Gravity Forms to update an existing post (or page.) Controlling access to the page (“This data will not be visible by front end traffic to the site. Only visible on profile pages to logged in administrators”) is not a function of Gravity Forms, but of WordPress or a WordPress plugin like Members. That would be used to limit access to the content to logged in administrators (that would need to happen with or without Gravity Forms.)

As for updating an existing post (“pre-populated with data already on it”), are you going to be editing or changing information on that dog or cat profile page, or just adding to it? There is probably a way to update an existing post to add information to it, but updating information already in the post will require more work.