Prefill field not work with anchor link
-
Hello.
Prefill field works fine on its own.
For example, on the home page of my site I create a button with this link:mysite.org/about?wpf123_1=yes
And it works fine – the field with ID1 is filled with the value “yes”.
But, when I place the same button on the same page (about) where my form is located, I want that when I click this button, the field values will be filled and scrolling to the form will be done.
Of course, before that I assigned an anchor point to the block where my form is located (for example: #myform).
In this case, the link of my button looks like this:#myform?wpf123_1=yes
But only scrolling to my form happens, but the values in the field are not filled in.
I tried to put an anchor point at the end of the request:
?wpf123_1=yes#myform
Tried using the full link:
mysite.org/about/#myform?wpf123_1=yes
Tried to use full link with anchor point at the end:
mysite.org/about/?wpf123_1=yes#myform
All in vain, it only scrolls to my form, but the value itself is not filled in.
Maybe it has something to do with the fact that I use Elementor when creating my pages and I assign anchor points to blocks through the Elementor editor. Or it just doesn’t work on a single page with the anchor point method.I hope you could understand my problem and can tell me something in this case, maybe it can be implemented with a snippet or use other methods. Thanks in advance for possible help.
- The topic ‘Prefill field not work with anchor link’ is closed to new replies.