Hi,
I created a small example for you.
Please download, unzip and install it (BF->Configuration->Package installer->select this xml file->Install package).
After that in Manage forms you will see form with name example10102022
1) I added one select list with name select
Select list is defined like this:
0;Please select;
0;Title 1;value1
0;Title 2;value2
0;Title 3;value3
2) I added one textfield with name price
3) go to select list->Advanced->Actionscript->check Custom->check change and there you will see this code:
function ff_select_action(element, action)
{
switch (action) {
case 'change':
if(element.value=="value1") {
ff_getElementByName('price').value="300";
}
else if(element.value=="value2") {
ff_getElementByName('price').value="400";
}
else if(element.value=="value3") {
ff_getElementByName('price').value="450";
}
else {
ff_getElementByName('price').value="";
}
break;
default:;
} // switch
} // ff_select_action
depend one selected value textfield price is populated
If you need anything else, feel free to ask
Regards,
Tihana