javascript - Render a JS form before show result page -
i want display js form api before display result page customers,
i tried display form in modal or popup js form api dont have control close when click on submit button , way form display everytime when launch new search, want show single time @ first search homepage think must run before result page
i tried render new page before search result loose search params if that
to simplify: first search homepage -> api pipedrive form -> result page
my searchbar
<%= form_tag resultat_path, id: "address_input", method: :get, autocomplete: 'on' %> <%= text_field_tag :location, params[:location], {id: 'address', class: "namanyay-search-box", placeholder: '10 rue nationale lille', :required => true} %> <%= select_tag(:room_type, options_for_select([ ['maison', "maison"], ['appartement', "appartement"], ['terrain', "terrain"], ['local commercial', "local_commercial"], ['immeuble de rapport', "immeuble_de_rapport"], ['murs commerciaux', "murs_commerciaux"], ['fond de commerce', "fond_de_commerce"]]), {class: "namanyay-search-box-type", :prompt => "type de bien", :required => true}) %> <%= select_tag(:nb_piece, options_for_select([['0', "0"], ['1', "1"], ['2', "2"], ['3', "3"], ['4', "4"], ['5 et +', "5 et +"]]), {class: "namanyay-search-box-room", :prompt => "nombre de pièces", :required => true}) %> <%= submit_tag "find !", id: "namanyay-search-btn" %> <% end %> my js form
<div class="pipedrivewebforms" data-pd-webforms="https://pipedrivewebforms.com/form/f5cd01e9418f0b683195eb0e821770181945719"> <script src="https://pipedrivewebforms.com/webforms.min.js"></script> </div>
Comments
Post a Comment