hello,
i have managed to pass values of select lists and text fields to dynamic text fields and even calculating them between two pages.
My only problem is that i need to pass a TITLE value from a select list.
SELECT LIST
name: unidadescddvd
options:
1;Quantidade de cópias;
0;100;1
2;200;2
3;300;3
action script:
function ff_unidadescddvd_action(element,action) {
ff_euros1_action(element,action);
ff_titulounidades_action(element,action);
}
NOTE:
- the euros1 field retrieves the value os the select list called unidadescddvdv
- the titulounidades SHOUL RETRIVE THE TITLEs (example 100, 200 OR 300)
TEXT FIELD WITH VALUE:
name: euros1
function ff_euros1_action(element,action)
{
ff_getElementByName('euros1').value = 0;
if (ff_getElementByName('unidadescddvd').value)
{
ff_getElementByName('euros1').value = Number(ff_getElementByName('euros1').value) +
Number(ff_getElementByName('unidadescddvd').value);
}
}
TEXT FIELD THAT SHOULD CALL THE TITLE OF THE SELECTED VALUE:
name: titulounidades
function ff_titulounidades_action(element,action)
{
ff_getElementByName('titulounidades').value = "";
if (ff_getElementByName('unidadescddvd').title)
{
ff_getElementByName('titulounidades').value = ff_getElementByName('unidadescddvd').title;
}
}
you can see it in action at:
www.now-disk.com/nowdisk/index.php?optio...forms&Itemid=210
thanks in advance
Mariana