Plugin Directory

Changeset 751810


Ignore:
Timestamp:
08/05/2013 06:32:00 PM (13 years ago)
Author:
e_durose
Message:

Added checkbox functionality and fixed mapping bug

Location:
dnd-gravity-forms-to-office-autopilot-contact-builder/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dnd-gravity-forms-to-office-autopilot-contact-builder/trunk/gravity-to-officeAP.php

    r719509 r751810  
    55Plugin URI: http://www.progo.com
    66Description: This plugin allows you to connect a Gravity Form to an Office AutoPilot Contact insert/update.
    7 Version: 3.0.2
     7Version: 3.1.0
    88Author: Eric DuRose
    99Author URI: http://www.danddcompany.com
     
    5252            );
    5353
    54 
     54 
    5555       
    5656        add_option( $option_name, $options );
     
    549549   
    550550   
     551   
     552   
     553   
    551554foreach($custom_options as $field){
    552555   
     
    565568                                    if ($field_value != ""){
    566569                                    $xml_data .= '<field name="' .  str_replace("_", " ", $field_key) . '">';
    567                                     $xml_data .=  $entry[$field_value]."</field>";
     570                                   
     571                                        if( $entry[$field_value] == "" ){
     572                                       
     573                                            //check to see if it's a checkbox value
     574                                        foreach($entry as $chkboxs => $values){
     575   
     576                                            if (is_numeric($chkboxs) && strpos( $chkboxs, "." ) !== false && strpos( $chkboxs, $field_value ) !== false && $values != ""){
     577               
     578                                                    $chkBoxValue .= $values . "*/*";
     579               
     580                                                }else{ $chkBoxValue .= ""; }
     581                                                   
     582                                                   
     583                                            }
     584                                           
     585                                            $xml_data .=  $chkBoxValue."</field>";
     586                                           
     587                                       
     588                                        }else{
     589                                                $xml_data .=  $entry[$field_value]."</field>";
     590                                        }
     591                                   
    568592                                   
    569593                                        if($field_key == "E-Mail"){
  • dnd-gravity-forms-to-office-autopilot-contact-builder/trunk/readme.txt

    r708811 r751810  
    33Tags: Gravity Forms Add-on, Office AutoPilot, Contact builder
    44Requires at least: 3.0
    5 Tested up to: 3.4.2
     5Tested up to: 3.6
    66Stable tag: 3.0
    77License: GPLv3 or later
     
    6767= 3.0.1 =
    6868* Fixed a JavaScript bug with the field mapping selection.
     69
     70
     71= 3.0.2 =
     72* Fixed a duplicate headers being sent error.
     73
     74
     75= 3.1.0 =
     76* Fixed mapped forms not being saved bug.
     77* Added functionality to map gravity form checkbox values to an Office AutoPilot checkbox or list values selection.
Note: See TracChangeset for help on using the changeset viewer.