Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Map GravityForms Image Fields To Pods Extended User Image Fields #121

Open
2 tasks
markerx opened this issue Sep 18, 2018 · 1 comment
Open
2 tasks
Labels
Milestone

Comments

@markerx
Copy link

markerx commented Sep 18, 2018

Issue Overview

I have used Pods to extend my User Fields.

http://cloud.brandonthompson.net/cc864e435bb1/Image%202018-09-16%20at%2011.43.45%20AM.png

The new fields appear on the Profile page.

I have created a Gravity Form for New User Registration. However, I am not seeing how to map my Gravity Form Field Image Fields to the new Pods Fields.

http://cloud.brandonthompson.net/b186b896949d/User_Registration_%E2%80%B9_Forms_%E2%80%B9_Land_Rover_National_Rally_%E2%80%94_WordPress_%E2%80%94_WordPress.png

I sent a support ticket to GravityForms, and their response was:

Apparently, Pods plugin is storing data in a different way if you are using their avatar or image fields. Gravity Forms only send text values. You can switch those fields to plain text or you can contact Pods support and ask if they know a way of integrating those field types with Gravity Forms.

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Form Upload

``` {"0":{"title":"User Registration Form","description":"","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Sign Up","imageUrl":""},"fields":[{"type":"text","id":1,"label":"Choose Your User Name","adminLabel":"","isRequired":true,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","enablePasswordInput":"","maxLength":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"email","id":2,"label":"Your Email","adminLabel":"","isRequired":true,"size":"medium","errorMessage":"","visibility":"visible","inputs":[{"id":"2","label":"Enter Email","name":""},{"id":"2.2","label":"Confirm Email","name":""}],"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","emailConfirmEnabled":true,"multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"name","id":3,"label":"Your Name","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","nameFormat":"advanced","inputs":[{"id":"3.2","label":"Prefix","name":"","choices":[{"text":"Mr.","value":"Mr.","isSelected":false,"price":""},{"text":"Mrs.","value":"Mrs.","isSelected":false,"price":""},{"text":"Miss","value":"Miss","isSelected":false,"price":""},{"text":"Ms.","value":"Ms.","isSelected":false,"price":""},{"text":"Dr.","value":"Dr.","isSelected":false,"price":""},{"text":"Prof.","value":"Prof.","isSelected":false,"price":""},{"text":"Rev.","value":"Rev.","isSelected":false,"price":""}],"isHidden":true,"inputType":"radio"},{"id":"3.3","label":"First","name":""},{"id":"3.4","label":"Middle","name":"","isHidden":true},{"id":"3.6","label":"Last","name":""},{"id":"3.8","label":"Suffix","name":"","isHidden":true}],"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"website","id":5,"label":"Website","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"placeholder":"http:\/\/","formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","maxLength":"","displayOnly":""},{"type":"fileupload","id":6,"label":"Your Picture","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"hidden","inputs":null,"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","maxFileSize":"","maxFiles":"","multipleFiles":false,"allowedExtensions":"","productField":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"text","id":8,"label":"What are your driving?","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","enablePasswordInput":"","maxLength":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"fileupload","id":7,"label":"Upload A Picture of Your Land Rover","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"hidden","inputs":null,"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","maxFileSize":"","maxFiles":"","multipleFiles":false,"allowedExtensions":"","productField":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""}],"version":"2.3.3","id":2,"useCurrentUserAsAuthor":true,"postContentTemplateEnabled":false,"postTitleTemplateEnabled":false,"postTitleTemplate":"","postContentTemplate":"","lastPageButton":null,"pagination":null,"firstPageCssClass":null,"subLabelPlacement":"below","cssClass":"","enableHoneypot":false,"enableAnimation":false,"save":{"enabled":false,"button":{"type":"link","text":"Save and Continue Later"}},"limitEntries":false,"limitEntriesCount":"","limitEntriesPeriod":"","limitEntriesMessage":"","scheduleForm":false,"scheduleStart":"","scheduleStartHour":"","scheduleStartMinute":"","scheduleStartAmpm":"","scheduleEnd":"","scheduleEndHour":"","scheduleEndMinute":"","scheduleEndAmpm":"","schedulePendingMessage":"","scheduleMessage":"","requireLogin":false,"requireLoginMessage":"","confirmations":[{"id":"5b9e846568edb","name":"Default Confirmation","isDefault":true,"type":"message","message":"Welcome aboard! Your new password will be emailed to you shortly.","url":"","pageId":0,"queryString":"","disableAutoformat":false,"conditionalLogic":[]}],"notifications":[{"id":"5b9e846568472","to":"{admin_email}","name":"Admin Notification","event":"form_submission","toType":"email","subject":"New submission from {form_title}","message":"{all_fields}"}]},"version":"2.3.3"} ```

Pods Package Export

``` {"meta":{"version":"2.7.9","build":1537286017},"pods":{"71":{"id":71,"name":"user","label":"User","description":"","type":"user","storage":"meta","object":"user","alias":"","fields":{"your_photo":{"id":132,"name":"your_photo","label":"Your Photo","description":"","help":"","class":"","type":"avatar","weight":0,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","avatar_format_type":"single","avatar_uploader":"plupload","avatar_attachment_tab":"upload","avatar_edit_title":"0","avatar_show_edit_link":"0","avatar_linked":"0","avatar_limit":"0","avatar_restrict_filesize":"10MB","avatar_add_button":"Add Your Picture","avatar_modal_title":"Add Your Picture","avatar_modal_add_button":"Add Your Picture","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0"},"your_land_rover":{"id":133,"name":"your_land_rover","label":"Your Land Rover","description":"Tell Us About Your Land Rover","help":"","class":"","type":"text","weight":1,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","text_repeatable":"0","text_placeholder":""},"land_rover_picture":{"id":134,"name":"land_rover_picture","label":"Land Rover Picture","description":"","help":"","class":"","type":"file","weight":2,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","file_format_type":"single","file_uploader":"plupload","file_attachment_tab":"upload","file_edit_title":"0","file_show_edit_link":"0","file_linked":"0","file_limit":"0","file_restrict_filesize":"10MB","file_type":"images","file_field_template":"rows","file_add_button":"Add Your Rover Picture","file_modal_title":"Attach a file","file_modal_add_button":"Add File","file_wp_gallery_output":"0","file_wp_gallery_link":"post","file_wp_gallery_columns":"1","file_wp_gallery_random_sort":"0","file_wp_gallery_size":"thumbnail","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","file_allowed_extensions":""}},"show_in_menu":1,"rest_enable":"0","read_all":"0","write_all":"0"}}} ```

Related Issues and/or PRs

Todos

  • Tests
  • Documentation

WordPress Environment

``` Debug Information WordPress Version: 4.9.8

PHP Version: 5.6.37

MySQL Version: 5.5.60

Server Software: Apache

Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Session Save Path: /tmp

Session Save Path Exists: Yes

Session Save Path Writeable: Yes

Session Max Lifetime: 1440

Opcode Cache:

Apc: No
Memcached: No
OPcache: No
Redis: No
Object Cache:

APC: No
APCu: No
Memcache: No
Memcached: No
Redis: No
WPDB Prefix: wp_

WP Multisite Mode: No

WP Memory Limit: 40M

Pods Network-Wide Activated: No

Pods Install Location: /homepages/32/d607366603/htdocs/LRNR/wp-content/plugins/pods/

Pods Tableless Mode Activated: No

Pods Light Mode Activated: No

Currently Active Theme: Land Rover National Rally - Child Theme

Currently Active Plugins:

All-in-One WP Migration: 6.76
Anti-spam: 5.2
Beaver Builder Plugin (Agency Version): 2.1.4.5
Beaver Themer: 1.2.0.2
Gravity Forms: 2.3.3
Gravity Forms Stripe Add-On: 2.5
Gravity Forms User Registration Add-On: 3.9
Members: 2.1.0
Pods - Custom Content Types and Fields: 2.7.9
Pods Beaver Themer Add-On: 1.3.0
Pods Gravity Forms Add-On: 1.3
Ultimate Addons for Beaver Builder: 1.11.0

</details>
@jimtrue jimtrue added bug verified Verified & Reproduced labels Sep 18, 2018
@jimtrue
Copy link
Contributor

jimtrue commented Sep 18, 2018

@sc0ttkclark I was able to reproduce the issue. This is without the Pods Gravity Forms Add-on, so just using User Registration to map to User Meta (User Registration has better handling of 'new user' 'modify user' than our configuration which requires the fields 'username' 'password' etc. even when it's not updating those fields.

I think this one mostly comes down to: how do those fields have to map so they provide the right values? Or do we need to write/provide a common code snippet or filter to translate the values.

@sc0ttkclark sc0ttkclark added this to the 1.5 milestone Oct 9, 2018
@sc0ttkclark sc0ttkclark removed the verified Verified & Reproduced label Oct 18, 2021
@sc0ttkclark sc0ttkclark modified the milestones: 1.5, 2.0 Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants