This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Form field filling using Ajax Search Pro

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Form field filling using Ajax Search Pro

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28234
    gallicantus92gallicantus92
    Participant

    Hello guys!
    We would like to use the Ajax Search Pro search result to fill in a form field with the value that the search produces.

    We tried to do this using this https://knowledgebase.ajaxsearchpro.com/hooks/filters/asp_before_ajax_output but the server returns Error 500 on the plugin results window.

    We would like to know if there is a possible way to make this happen, working “after ajax output”, perhaps using a javascript after selecting the search result.

    Do you think there is a way forward?
    If it were possible I’d be very grateful, thanks in advance
    Stefano

    #28239
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Stefano,

    I believe you are looking for the javascript API. You could try to attach an event handler to the “asp_search_end” event, to get the values from the results box you need. This requires some programming knowledge though. If you need help, I usually recommend Envato Studio to look for custom developers.

    #28269
    gallicantus92gallicantus92
    Participant

    Thank you very much Ernest, your support is great as your plug-in, asp_search_end event worked perfectly!

    #28270
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.