diff --git a/gp-preview-submission/gpps-live-refresh.php b/gp-preview-submission/gpps-live-refresh.php index c3061d8b3..3e498a18d 100644 --- a/gp-preview-submission/gpps-live-refresh.php +++ b/gp-preview-submission/gpps-live-refresh.php @@ -88,7 +88,16 @@ public function output_script() { }; self.$form.find( 'input, select, textarea' ).each( function() { - data[ $( this ).attr( 'name' ) ] = $( this ).val(); + var $input = $( this ), + name = $input.attr( 'name' ); + + if ( $input.is(':radio') ) { + if ( $input.is(':checked') ) { + data[name] = $input.val(); + } + } else { + data[name] = $input.val(); + } } ); $.post( self.ajaxUrl, data, function( response ) {