Store Locator Plus® for WordPress Forums Premier Support What file to edit to set onSubmit event for location search?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40743
    James
    Participant

    I need to trigger an onSubmit event when a user submits their address in my search bar here: https://shoehospitals.com

    I know how to add the onSubmit to the form element but I do not know which file to edit.

    For context, the reason I need to do this is because I use a piece of javascript to dynamically change the phone number based on user source so we can track phone calls back to our Adwords/Bing campaigns/keywords.

    My script fires on page load and works fine to replace the numbers displayed on the page during page load. Since my location search results are not displayed until after the user searches/submits the form I need to trigger my event to run the swap.js callrail script so I can dynamically swap out the numbers in the results with tracking numbers.

    Can you tell me which file to edit and I can handle the rest.

    Thank you.

    #40784
    Cici
    Keymaster

    Hi James, I believe Lance answered your question in SLACK channel?

     

    Can I close this thread now?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘What file to edit to set onSubmit event for location search?’ is closed to new replies.