:
onclick="if(this.checked) {jQuery('#form_notification_admin_container').show('slow');} else {jQuery('#form_notification_to').val(''); jQuery('#form_notification_admin_container').hide('slow');}"/>
;">
>
*
value="email" onclick="jQuery('#notification_to_routing_container').hide(); jQuery('#notification_to_email_container').show('slow');"/>
value="routing" onclick="jQuery('#notification_to_email_container').hide(); jQuery('#notification_to_routing_container').show('slow');"/>
;">
" class="fieldwidth-1" />
;">
>
" onkeyup="SetRouting();"/>
>
>
" ? "selected='selected'" : "" ?>>
>
>
>
>
1 ){ ?>
"/>
" >
"/>
" >
" class="fieldwidth-2" />
" >
" class="fieldwidth-1" />
>
*
" class="fieldwidth-1" />
>
*
false)); } else{ ?>
/>
", ""); ?>
', ''); ?>
onclick="if(this.checked) {jQuery('#form_notification_user_container').show('slow');} else {jQuery('#form_notification_user_container').hide('slow');}"/>
;">
*
" >
" class="fieldwidth-2" />
" class="fieldwidth-2" />
" class="fieldwidth-2" />
" class="fieldwidth-1" />
>
*
" class="fieldwidth-1" />
>
*
false)); } else{ ?>
/>
'; echo apply_filters("gform_save_notification_button", $notification_button); ?>
" . $field_label . ""; } } return $str; } private static function get_field_values($i, $form, $field_id, $selected_value, $max_field_length = 16){ if(empty($field_id)) $field_id = self::get_first_routing_field($form); if(empty($field_id)) return ""; $field = RGFormsModel::get_field($form, $field_id); $is_any_selected = false; $str = ""; if (!$field) return ""; if ($field["type"] == "post_category" && rgar($field, "displayAllCategories") == true) { $str .= wp_dropdown_categories(array("class"=>"gfield_routing_select gfield_category_dropdown gfield_routing_value_dropdown", "orderby"=> "name", "id"=> "routing_value_" . $i, "selected"=>$selected_value, "hierarchical"=>true, "hide_empty"=>0, "echo"=>false)); } elseif (rgar($field,"choices")) { $str .= "
"; foreach($field["choices"] as $choice){ $is_selected = $choice["value"] == $selected_value; $selected = $is_selected ? "selected='selected'" : ""; if($is_selected) $is_any_selected = true; $str .= "
" . $choice["text"] . "
"; } //adding current selected field value to the list if(!$is_any_selected && !empty($selected_value)) { $str .= "
" . $selected_value . "
"; } $str .= "
"; } else { //create a text field for fields that don't have choices (i.e text, textarea, number, email, etc...) $str = "
"; } return $str; } public static function get_post_category_values(){ $id = "routing_value_" . rgpost("ruleIndex"); $selected = rgempty("selectedValue") ? 0 : rgpost("selectedValue"); $dropdown = wp_dropdown_categories(array("class"=>"gfield_routing_select gfield_routing_value_dropdown gfield_category_dropdown", "orderby"=> "name", "id"=> $id, "selected"=>$selected, "hierarchical"=>true, "hide_empty"=>0, "echo"=>false)); die($dropdown); } } ?>