I have a form that displays differently based on the input. I change a variable and want to redisplay data with a button click. See code below.
(function info)
function ExpJobGrp(stuff)
{
var NewInd_Id = 10
document.frmInd_Per.Ind_ID.value = NewInd_Id
document.frmInd_Per.submit()
location = "Indicators_Per.cfm"
}
(button info)
<input type="button" value="View Expense / Job By Group" onclick="return ExpJobGrp(this)">
None of the form values get passed when I do this. If I copy the form to another name, say Indicators_Per_1.cfm, the form values get passed. I really don't want to create a bunch of extra files. I want to reuse my code.
What am I doing wrong?!?
TIA
John
(function info)
function ExpJobGrp(stuff)
{
var NewInd_Id = 10
document.frmInd_Per.Ind_ID.value = NewInd_Id
document.frmInd_Per.submit()
location = "Indicators_Per.cfm"
}
(button info)
<input type="button" value="View Expense / Job By Group" onclick="return ExpJobGrp(this)">
None of the form values get passed when I do this. If I copy the form to another name, say Indicators_Per_1.cfm, the form values get passed. I really don't want to create a bunch of extra files. I want to reuse my code.
What am I doing wrong?!?
TIA
John