Get value from form input to form action

I think this is a relatively simple question but I am not that into these sorts of scripts, so I hope you guys can help me.

I have a HTMl form and i will like to put values from this form into the form action so I can redirect the user to the correct place after they submit the form.

I can get this working with 1 of the values, but i need 2 values.

Here is the working script:

        function selectChangedAdgang(adgangValue) {
    alert("you choose: " + adgangValue);
document.getElementById("documentForm").action = "/form.aspx?LINK=/intranet/dokumenter?adgang="+adgangValue; };

So i just need to have this script running “2 times”, so I can input one more value from another input field. I thought it was very simple and I am quite sure it is, but I hope you guys can point me in the right direction 🙂

Source: html

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.