Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // what do the 10, 6 arguments stand for?
- //
- add_filter("gform_column_input_content_1_3_7", "change_column7_content", 10, 6);
- function change_column7_content($input, $input_info, $field, $text, $value, $form_id){
- $input_field_name = 'input_' . $field["id"] . '[]';
- $tabindex = GFCommon::get_tabindex();
- $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>';
- return $new_input;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement