Copy link to clipboard
Copied
my issue is that , i have 1 dropdown name Items with 3 items (fruits) i want when someone pick any friut in dropdown the price auto come in price section, i do this java script in price section it's not showing any error but not showing the price too , i have tried many times but stuck in this problem pls guide me where im doing mistake
var Item = this.getfeild("Items").value;
switch(Item) {
case "Apple":
event.value = "100";
break;
case "Banana":
event.value = "150";
break;
case "Graps":
event.value = "200";
break;
case "Orange":
event.value = "250";
break;
}
Copy link to clipboard
Copied
There are errors in your code. Check the JS Console.
Copy link to clipboard
Copied
brother what is JS Console kindly tell me the error in easy way
Copy link to clipboard
Copied
This is wrong: "getfeild"
Copy link to clipboard
Copied
"brother what is JS Console?"
Copy link to clipboard
Copied
Thanks i open these options , brother i still cant fix issue , i dont know the java script please correct my script where is problem
var Item = this.getfeild("Items").value;
switch(Item) {
case "Apple":
event.value = "100";
break;
case "Banana":
event.value = "150";
break;
case "Graps":
event.value = "200";
break;
case "Orange":
event.value = "250";
break;
}
Copy link to clipboard
Copied
Change getfeild to getField like this:
var Item = this.getField("Items").value;
Copy link to clipboard
Copied
Thank you so much