I have a radio selection in a form and need to redirect within gform_confirmation function based on the selection. Not sure how to get the value within the function.
if( **CHECK FOR RADIO SELECTION 'annual'** ) {
WC()->cart->add_to_cart( 13356, 1 );
} elseif( **CHECK FOR RADIO SELECTION 'once'** ) {
WC()->cart->add_to_cart( 13316, 1 );
}
Here is my input -
<input class="gfield-choice-input" name="input_63" type="radio" value="Annual auto renewal" checked="checked" id="choice_1_63_0" onchange="gformToggleRadioOther( this )">