Database help
I'm trying to make something like database.
I use code in document level script
var fruits = {Apple:{ Color: "Green",
Size: "Medium",
Weight: "50" },};
function SetFieldValues(fruits)
I set fruit function in dropdown field where I select fruits ( in this case apple).
Now I want to add text field with numbers to use same function, how to set my code so it depends on two fields(dropdown = fruits and text field = numbers)
something like this:
var fruits = {Apple, 1:{ Color: "Green",
Size: "Medium",
Weight: "50" },
2:{ Color: "Red",
Size: "Large",
Weight: "80" },};
How do i make it work?
