Get value on form submission using hook

If i add a button on the top of the all list page using a hook from my custom module then is it possible to get an URL variable value by pressing the button in the same page? The button is under a form but i need to get an URL variable value when i press that button and want to reload the page with that value.

A bit late but, you could add an invisible input with display:none and put the url variable as it’s value, then when you submit the form it should be passed as a variable

Hi @Leonardo_Boss

Sorry for the late reply. Thanks for your reply. I will try this and let you know.

Thanks