Form Builder: Enforce data retention policy

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: 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 );
      

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

              Created:
              Updated:
              Resolved: