Dropbox with functions

Hey,
Hi, I need to write a dropbox with a function. text "a" if fieldname1 <10, return 1000 if fieldname => 10, return 2000 text "b" IF fieldname1 <10, return 10 IFfieldname1 => 10, return 20 text "c" = 200 text "d '= 300 and the second function. if someone choose "a" in fieldname2, the value is 90 if he chose "b" then 30 ..
I tried:
(function(){ if(fieldname1 == 'A') { if(fieldname1<=10) return 20; if(fieldname >10) return 30; } else { if(fieldname1 == 'B') { if(fieldname1<=10) return 20; if(fieldname >10) return 30; } })()
Viewing 5 replies  1 through 5 (of 5 total)
Viewing 5 replies  1 through 5 (of 5 total)
 You must be logged in to reply to this topic.