This is the code i have currently in the button.
<input name="btnNewContact" type="button" disabled id="btnNewContact" value="New Contact" onClick="switchSection('mainSection','contactSection'); document.getElementById('orgname').value = document.getElementById('selected'.cells[1].value">
However, when you click on it, it doesnt do anything. If i remove the document.getElementById('orgname').value = document.getElementById('selected'.cells[1].value" part, it goes to the form page.
I'm not sure how to store the data from the selected row and retrieve it and then display it in a textbox.
I'm guessing a function would need to be created?
and then called from the form action.