Advertisement
peeela

Untitled

Jul 10th, 2013
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>';
  8.     return $new_input;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement