Create a calculation form with pre-defined results
-
Hello CFF!
I’m looking to create a calculator form with pre-defined results.
The idea is that a customer with enter their serial number and i will therefor create a ”database” of results, aligned with this one:
if(( num > 0 ) * ( num <= 176)){ document.snf.year.value = “1859 or before”;}
if(( num > 176 ) * ( num <= 3673)){ document.snf.year.value = “1860 – 1869”;}
if(( num > 3673 ) * ( num <= 10933)){ document.snf.year.value = “1870 – 1879”;}
if(( num > 10933 ) * ( num <= 22628)){ document.snf.year.value = “1880 – 1889”;}
if(( num > 22628 ) * ( num <= 50490)){ document.snf.year.value = “1890 – 1899”;}
if(( num > 50490 ) * ( num <= 94753)){ document.snf.year.value = “1900 – 1909”;}
if(( num > 94753 ) * ( num <= 114822)){ document.snf.year.value = “1910 – 1919”;}
if(( num > 114822 ) * ( num <= 136067)){ document.snf.year.value = “1920 – 1929”;}
if(( num > 136067 ) * ( num <= 143270)){ document.snf.year.value = “1930 – 1939”;}
if(( num > 143270 ) * ( num <= 147008)){ document.snf.year.value = “1940 – 1949”;}
if(( num > 147008 ) * ( num <= 151342)){ document.snf.year.value = “1950 – 1959”;}
if(( num > 151342 ) * ( num <= 161114)){ document.snf.year.value = “1960 – 1969”;}
if(( num > 161114 ) * ( num <= 173784)){ document.snf.year.value = “1970 – 1979”;}
if(( num > 173784 ) * ( num <= 180198)){ document.snf.year.value = “1980 – 1989”;}
if(( num > 180198 ) * ( num <= 185272)){ document.snf.year.value = “1990 – 1998”;}
if(( num > 185272 )){ document.snf.year.value = “Efter 1998”;}I’m just not sure how to exactly achvie this with your plugins, could you perhaps elaborate where in your documentation i can read more about this?
- The topic ‘Create a calculation form with pre-defined results’ is closed to new replies.