View difference between Paste ID: DiUi4V86 and n8Ejj64Y
SHOW: | | - or go back to the newest paste.
1
// what do the 10, 6 arguments stand for?
2
//
3
add_filter("gform_column_input_content_1_3_7", "change_column7_content", 10, 6);
4
function change_column7_content($input, $input_info, $field, $text, $value, $form_id){
5
    $input_field_name = 'input_' . $field["id"] . '[]';
6
    $tabindex = GFCommon::get_tabindex();
7-
    $new_input = '<ul class="gfield_radio" id="input_' . $form_id . '_'. $field["id"] .'[]"><li class="gchoice_'. $field["id"] .'[]_0"><input name="' . $input_field_name . '" type="radio" value="Male" id="choice_'. $field["id"] .'[]_0" '. GFCommon::get_tabindex() .' onclick="gf_apply_rules(1,[0]);"><label for="choice_'. $field["id"]  .'[]_0">Male</label></li><li class="gchoice_'. $field["id"] .'[]_1"><input name="' . $input_field_name . '" type="radio" value="Female" id="choice_'. $field["id"] .'[]_1" '. GFCommon::get_tabindex() .' onclick="gf_apply_rules(1,[0]);""><label for="choice_'. $field["id"] .'[]_1">Female</label></li></ul>';
7+
    $new_input = '<ul class="gfield_radio" id="input_' . $form_id . '_'. $field["id"] .'[]"><li class="gchoice_'. $field["id"] .'_0"><input name="' . $input_field_name . '" type="radio" value="Male" id="choice_'. $field["id"] .'_0" '. GFCommon::get_tabindex() .' onclick="gf_apply_rules(1,[0]);"><label for="choice_'. $field["id"]  .'_0">Male</label></li><li class="gchoice_'. $field["id"] .'_1"><input name="' . $input_field_name . '" type="radio" value="Female" id="choice_'. $field["id"] .'_1" '. GFCommon::get_tabindex() .' onclick="gf_apply_rules(1,[0]);""><label for="choice_'. $field["id"] .'_1">Female</label></li></ul>';
8
    return $new_input;
9
}