Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7148

Form Builder: Enforce data retention policy

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 2.106.0

      Summary

      In order to minimize personal data storage in P4 database, we will enforce certain retention period rules and encourage admins to either export data or integrate with other systems (eg. Hubspot).

      Requirements

      • Enable Retention Policy option under Form Settings > Personal Data by default.
      • Number of days to use a retention value: 90.

      Resources

      Code example

      add_filter( 'gform_form_update_meta', function( $meta, $form_id, $meta_name ) {
      
          GFCommon::log_debug( current_filter() . ': filtering personal data settings.' );          
      
          $meta['personalData']['retention']['retain_entries_days'] = 90;
      
          return $meta;
      
      }, 10, 3 );
      

            oagbernd Osong Agberndifor
            nroussos Nikos Roussos
            Dan Tovbein Dan Tovbein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: