0

I have created a store/franchise locator page here. Once users click "Contact Franchise" on the locator, the franchise name is passed to the form underneath.

The query string looks like this webpage/?selected-franchise=Franchise%20Name

When I add the anchor to the form (webpage/?selected-franchise=Franchise%20Name#form), it works when you are coming from another page/open in a new window but when clicked on while on the same page, the page anchors down but does not refresh and pass on the Franchise name to the first form field.

Any advice on how to best approach this?

1 Answer 1

0

I literally just ran into the same problem.

I found the answer on another post: https://stackoverflow.com/questions/12682952/proper-url-forming-with-a-query-string-and-an-anchor-hashtag/48728926#48728926

Use <form> instead of <a>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.