pods-framework / pods-gravity-forms

Integration with Gravity Forms plugin for WordPress (https://pods.io/gravityforms/)
https://wordpress.org/plugins/pods-gravity-forms/
GNU General Public License v2.0
62 stars 10 forks source link

Making Gravity Form Fields "Readonly" breaks pods-gravity-forms #130

Open jeiseman opened 5 years ago

jeiseman commented 5 years ago

Issue Overview

Making a field readonly as described here: Gravity Forms: making a field read only causes the values in the readonly fields to be treated as empty by pods-gravity-forms (I used the Native Code implementation).

The form is set up with the following pod options enabled:

## Expected Behavior The readonly fields should retain the current value ## Current Behavior The values for readonly fields are lost. ## Possible Solution Fix it so that readonly fields are ignored and there current values are retained. ## Steps to Reproduce (for bugs) Setup a feed and make the form fields readonly then try to update the form. ## Related Issues and/or PRs ## Todos - [ ] Tests - [ ] Documentation ## WordPress Environment Debug Information WordPress Version: 5.2 PHP Version: 7.1.29 MySQL Version: 5.6.40 Server Software: Apache Your User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 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: Yes Redis: No Object Cache: APC: No APCu: No Memcache: No Memcached: Yes Redis: No WPDB Prefix: frnax_ WP Multisite Mode: No WP Memory Limit: 40M Current Memory Usage: 47.370M Current Memory Usage (real): 52.000M Pods Network-Wide Activated: No Pods Install Location: /home/adapti24/staging/5/wp-content/plugins/pods/ Pods Tableless Mode Activated: No Pods Light Mode Activated: No Currently Active Theme: GeneratePress Child Currently Active Plugins: Add From Server: 3.3.3 Admin Menu Editor Pro: 2.9 Advanced Gutenberg: 1.10.10 All In One WP Security: 4.3.9.2 Allow Multiple Accounts: 3.0.4 bbPress: 2.5.14 Bike Club: 0.1 BuddyPress: 4.3.0 BuddyPress Admin Only Profile Fields: 1.2 Custom Icons for Elementor: 0.2.2 Disable Gravity Forms Fields: 1.4 Download Manager: 2.9.96 Duplicator: 1.3.12 Dynamic User Directory: 1.5.0 Dynamic User Directory Meta Fields Search: 2.1 Dynamic Visibility for Elementor: 2.0.4 Easy Theme and Plugin Upgrades: 2.0.1 Elementor: 2.5.15 Elementor Blocks for Gutenberg: 1.0.1 Elementor Pro: 2.5.8 Envira Gallery: 1.8.5.7 Envira Gallery - Albums Addon: 1.6.9 Envira Gallery - Dynamic Addon: 1.5.3 Envira Gallery - Fullscreen Addon: 1.2.1 Envira Gallery - Gallery Themes Addon: 1.4.6 Envira Gallery - Printing Addon: 1.2.1 Envira Gallery - Slideshow Addon: 1.3.3 Envira Gallery - Tags Addon: 1.7.4 Envira Gallery - Videos Addon: 1.5.3 Envira Gallery - Zoom Addon: 1.3.5 Events Manager: 5.9.5 Far Future Expiration Plugin: 1.4 GP Premium: 1.8.2 Gravity Forms: 2.4.9 Gravity Forms Gutenberg Add-On: 1.0-rc-1.2 Gravity Forms Reset Button Add-On: 1.0 Gravity Forms Survey Add-On: 3.2 HT Mega - Absolute Addons for Elementor Page Builder: 1.1.0 If Menu - Visibility control for menu items: 0.14.1 Lightweight Grid Columns: 1.0 Login-Logout: 3.8 Maps Block for Gutenberg: 1.27 Members: 2.1.0 Menu Icons: 0.11.4 Menu Social Icons: 1.3.10 MetaSlider: 3.13.1 Paid Memberships Pro: 2.0.5 Paid Memberships Pro - BuddyPress Add On: 1.2.2 Paid Memberships Pro - Email Templates Add On: 0.7.2 Paid Memberships Pro - Import Users from CSV Add On: .3.3 PDF Embedder Premium: 4.0 Pluginception: 1.3 Pods - Custom Content Types and Fields: 2.7.12 Pods Gravity Forms Add-On: 1.4.1 PowerPack Lite for Elementor: 1.2.1 Premium Addons for Elementor: 3.3.7 Relevanssi: 4.1.4 Remove Dashboard Access: 1.1.3 Remove itthinx Updates Plugin Notice: 1.0.3 Shortcode Widget: 1.5.2 Simple File List: 3.2.4 SiteOrigin CSS: 1.2.4 SiteOrigin Widgets Bundle: 1.15.6 Socicon: 1.5.0 SuitePlugins - Advanced XProfile Fields for BuddyPress: 1.0.3 Swifty Image Widget by WPGens: 1.0.4 The Events Calendar: 4.9.1.1 The Events Calendar Category Colors: 6.1.1 The Events Calendar PRO: 4.7.1 TinyMCE Advanced: 5.2.0 Widget Importer & Exporter: 1.5.5 Widgets Control Pro: 2.1.0 Woody ad snippets (PHP snippets | Insert PHP): 2.1.91 WP Cloudy: 4.4.7 WP HTML Mail: 2.9 WP Mail SMTP: 1.4.2 WP Media folder: 4.7.12 Zen Menu Logic: v1.6
issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.91. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

jeiseman commented 5 years ago

I found a way to work around this issue : Make the file hidden instead of readonly. Whenever I make the field readonly, I see the problem.