Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Help needed with input script.
01-22-2013, 03:18 AM #1
- Join Date
- Jan 2013
- Thanked 0 Times in 0 Posts
Help needed with input script.
So here is the line of code that is creating the problem. The InputName needs to be changed to entry.24.single, and I haven't been able to figure out how to do that.
document.forms.MyForm.InputName.value = GETDATA["foo"];
Your assistance is greatly appreciated!
01-22-2013, 05:25 AM #2
Leaving aside the fact that the form should not have a name but rather an ID:
document.forms.MyForm[ "entry.24.single" ].value = GETDATA["foo"];
When you change to an ID:
document.getElementById( "MyFormID" )[ "entry.24.single" ].value = GETDATA["foo"];
Last edited by Logic Ali; 01-22-2013 at 05:28 AM.