<% remote_form_for @support_request, :html => { :onsubmit => "if (!validate_contact_from(this)) return false" } do |f| -%> <%= f.hidden_field :support_request_origin_id %> <%= f.hidden_field :subject, :value => params[:subject] %> <%= f.hidden_field :product_id unless show_product_select %> <%= hidden_field_tag "callback", callback %> <%= antispam_field %>
<%= submit_button "   Send   " %>
<% end -%>