Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Keep values selected after form submission
- This topic has 12 replies, 2 voices, and was last updated 6 years ago by
pinpin052871.
-
AuthorPosts
-
May 8, 2020 at 3:32 am #27179
pinpin052871
ParticipantHi,
On submitting the form, how do I make sure that the selected values remain selected in the dropdowns?
Thank You !
May 8, 2020 at 1:15 pm #27195Ernest Marcinko
KeymasterHi,
If both forms have the same ID (same search instance), then it should work automatically. For different search instances unfortuantely this is not possible.
May 9, 2020 at 4:55 am #27206pinpin052871
ParticipantHi,
Thank you for your quick response.
Both forms have the same ID. But the selected values can’t remain selected.
What should I confirm?Sincerely,
May 11, 2020 at 11:42 am #27215Ernest Marcinko
KeymasterHi,
I run a few tests on our test enviromnent, but it works correctly. It is very likely an unknown issue then. Can you please share a URL where I can test this, as well as temporary FTP and back-end access, so I can debug the problem. Thank you!
May 12, 2020 at 9:37 am #27257pinpin052871
ParticipantYou cannot access this content.
May 12, 2020 at 3:13 pm #27268Ernest Marcinko
KeymasterYou cannot access this content.
May 13, 2020 at 1:45 am #27280pinpin052871
ParticipantYou cannot access this content.
May 13, 2020 at 10:10 am #27284Ernest Marcinko
KeymasterYou cannot access this content.
May 14, 2020 at 12:45 am #27310pinpin052871
ParticipantYou cannot access this content.
May 14, 2020 at 12:42 pm #27319Ernest Marcinko
KeymasterOh okay, but wait, that is not possible I’m afraid. Clicking on a result is a page redirection, and not a form submit. Submitting happens when you hit enter on the input or click the magnifier icon – but clicking on a result will redirect to the individual, single result page.
May 15, 2020 at 4:21 am #27350pinpin052871
ParticipantOh, OK. You mean that clicking on a result isn’t a form submit. Sorry, I was confused.
However, don’t you think that users often click on a result? I think users will be in trouble if the settings are reset each time.Sincerely,
May 15, 2020 at 12:30 pm #27366Ernest Marcinko
KeymasterHi,
Of course they do, but clicking on a result takes you to the result, not to the search submission page. Usually result pages does not contain a search bar, so this haven’t come up until now as a request.
May 16, 2020 at 9:47 pm #27405pinpin052871
ParticipantHi,
That’s unfortunate. I will try to keep the settings by using session in JavaScript.
If it’s alright with you, I’d like to improve it in future updates.
I am grateful for what you did for me.Sincerely,
-
AuthorPosts
- You must be logged in to reply to this topic.