pods-gravity-forms
pods-gravity-forms copied to clipboard
Bug: Remaining Fields not Mapping in Populate from Existing Record. List of Fields in Task List
From @userphil (https://github.com/pods-framework/pods/issues/4434)
"Enable populating field values for this form using current post" in pods feed settings is checked.
When loading the form most fields populate with existing data, however check boxes, multi-select fields and address sub-fields do not populate with existing data.
Current versions PODS - 2.6.10 PODS Gravity Forms Addon - 1.3 Gravity Forms - 2.2.5
Fields Impacted: All Relationship fields All Image Fields Address Fields (because we don't have an 'address field' in Pods)
Please try the latest 1.4 I'm working on: https://github.com/pods-framework/pods-gravity-forms/archive/feature/skc-fixes.zip
Scott, I am not sure how to do this, so forgive me if I am making a mistake but I have an issue that Jim suggested I highlight here. I am trying to edit a POD using the Gravity Form plugin on the front end. I have created the POD and added the form to the bottom of the template which works like a dream. The standard fields are populated in the edit section and I can update them as I wish. In the POD I have several fields that are multi-select with a relationship to Users. I cannot seem to find a type of field in Gravity Forms that I can update this type of field in the POD. I can display the list of Users in the Gravity Form but when I select multiple people and click on submit it doesn't update the POD. Any thoughts? Ian
The latest 1.4 release has some fixes for this: https://github.com/pods-framework/pods-gravity-forms/archive/feature/skc-fixes.zip
One note: Address fields -- I was not able to get these to prepopulate. I need to contact GF support to determine the best method there.
Task List
Fields Remaining that are not Populating as of 1.4.1:
- [ ] Address Field
- [ ] Name Field
- [ ] Featured Image
- [ ] File Field (single or multiple)
@sc0ttkclark Added this list to the Task List in the Issue above for fields outstanding that do not populate. The File fields (if re-submitted) will replace the existing so they at least 'partially' work.
Hey guys, I have managed to pre-populate this fields using custom gravity forms hooks, then the mapping is done in select fields automatically. Also pre populated address fields and others.
For anyone else wanting to pre-populate the fields, I couldn't achieve first_name and last_name with gform_field_value_parameter_name (even with a high priority for this filter), but I was able to do it with the gform_pre_render filter and then setting the field's defaultValue.
[Edit]: you can also use {user:first_name} or {user:last_name} in the default value on the form itself if the user is the current logged-in user.
I am also having this issue.
- ~I don't see first name/last name as mappable fields.~ I figured this out
- I have set some checkbox items in GF & Pods; information travels from GF to Pods, but does not make the return trip from Pods to GF, so viewing a checked=true checkbox item in GF does not show the checked state.