Store Query String in Form Data

Is there any custom java script available to achive this by adding at Additional code snippets.