I
IDW
Hi,
I am trying to read the value from a series of text fields in a form. The
problem is I am using Javascript to do a document.write the input tag
containing the text field. The reason why I think I have to do this is I
need to have the name changed each time as this field could repeat it's self
up to 7 times and it would need an unique name.
the code is below and the alert doesn't work. The fmp tags are CDML tags
and used by the Filemaker database.
Can anybody shed any light on where I am going wrong.
TIA
this is the function
amount0 = document.form1.units0.value;
alert(amount0)
This is the code in my page
<script language="Javascript">
var num = new String("0");
</script>
[fmp-record]
<script>document.write("<input name=units"+ num +"type='text'
value='[fmp-field: unitscalc]'>")</script>
<script language="Javascript">
num++;
</script>
[/fmp-record]
I am trying to read the value from a series of text fields in a form. The
problem is I am using Javascript to do a document.write the input tag
containing the text field. The reason why I think I have to do this is I
need to have the name changed each time as this field could repeat it's self
up to 7 times and it would need an unique name.
the code is below and the alert doesn't work. The fmp tags are CDML tags
and used by the Filemaker database.
Can anybody shed any light on where I am going wrong.
TIA
this is the function
amount0 = document.form1.units0.value;
alert(amount0)
This is the code in my page
<script language="Javascript">
var num = new String("0");
</script>
[fmp-record]
<script>document.write("<input name=units"+ num +"type='text'
value='[fmp-field: unitscalc]'>")</script>
<script language="Javascript">
num++;
</script>
[/fmp-record]