## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
• inicolabug

(@inicolabug)

yes, thanks a lot for ur help now the first step now works perfectly 🙂 many many many thanks
now i try the % in the radio button i think to do in a different way because the % need to process different number so maybe i can try something like this

if(radioBtns == si) (result*fieldname7)(value10) and then (result/fieldname8)(value100) ;
something like this but written well now i try to arrange the correct coding for this.
thanks again best regard

inicolabug

(@inicolabug)

in the radio i need to add a 10% to the result , so result *= 0.9; is right?

inicolabug

(@inicolabug)

ok i did in this way:

(function(){
var result = 0;
if( fieldname1==”value 1″ && fieldname2==”value 1″) result= value 184,10;
if( fieldname1==”value 1″ && fieldname2==”value 2″) result= value 329,00;

if(radioBtns == 6) result *= 0.9;
return result;
})()
but no result from calculations ….. where is the error?
and in the radio buttons cal when i define the conditional — if(radioBtns == 6) result *= 0.9; — i have to do in this way ? or
(fieldname5 == 6) result *= 0.9; ??
thanks again 🙂

inicolabug

(@inicolabug)

ok i tested just the first step fieldname 1 and fieldname 2 but i have always 0 for result , i did this
(function(){
var result = 0;
if( fieldname1==”value 1″ && fieldname2==”value 1″) result=”value 184,10″;
if( fieldname1==”value 1″ && fieldname2==”value 2″) result=”value 329,00″;

return result;
})()

maybe i need to define the value of the var result not zero but the value of the conditionals, i’m asking how ? i hope start to work so i stop to annoying you . Thanks again for ur golden support

inicolabug

(@inicolabug)

i’ll try something like this :

(function(){
var result = 0;
if( fieldname1==”value X” && fieldname2==”value X”) result=”value A”;
if( fieldname1==”value X” && fieldname2==”value Y”) result=”value B”;

if(radioBtns == 6) result *= 0.9;
if(radioBtns == 7) result *= 0.85;
if(radioBtns == 8) result *= 0.8;
if(radioBtns == 9) result *= 0.75;
if(radioBtns == 10) result *= 0.7;

return result;
})()

inicolabug

(@inicolabug)

ah perfect thanks

inicolabug

(@inicolabug)

here the mistake i didn’t need a sum of fieldname 1 + fieldname 2 but the selection of fieldname 1 choice 1 + fieldname 2 choice 1 need to recall an hidden field with the result and the calculation need to take the hidden field value to add the radio button options.
here http://www.bsabroker.info/prev-test-12-may/ a test with ur code that work but i have the sum.
For this reason i think i need to add an if fieldname 1 is 1 and fieldname 2 is 1 result fieldname 3 (hidden fields with number value).
but i can do in another way maybe i’ll try …. i’ll let u know later if works

inicolabug

(@inicolabug)

sorry but i think there is a mistake the calculation field isn’t hidden , the hidden fields are the fields with the result from , fieldname 1 choice 1 + fieldname 2 choice 1 ; then fieldname 1 choice 1 + fieldname 2 choice 2 ; then fieldname 1 choice 1 + fieldname 2 choice 3 ; and so on ,
maybe i think i need an if fieldname 1 is 1 and fieldname 2 is 1 result fieldname 3 (hidden fields with number value) and then if fieldname 1 is 1 and fieldname 2 is 2 result fieldname 4 and so on . right? 🙂

inicolabug

(@inicolabug)

ok perfect so i reply the function inside the same calculation filed for each result of the fieldname 1 + fieldname 2 ?
Just to understand how this funcion get the fieldname 3? (function(){
var result = (fieldname1+fieldname2)*fieldname3;

return result;
})()

to get the fieldname 3 result i need to select fieldname 1 choice 1 and fieldname 2 choice 1 , how i can configure this ?
because then i have fieldname 1 choice 1 + fieldname 2 choice 2 and get another result(an hidden fieldname with a number value.
Thanks if i understand this maybe i can set a right equation

inicolabug

(@inicolabug)

Hi thanks for the super fast answer, now i try ur code adding the right values.
So to explain better yes fieldname 1 (dropdown with 5 different choice, with no number value ) + fieldname 2 (dropdown with 6 different choice, with no number value ) = base result (don’t need to be showed and i already know the value ) then 10 radio button with yes or no .
so i need to create a calculation fields for every result from fieldname 1 + fieldname 2 ?
Thanks again for ur great help

inicolabug

(@inicolabug)

Hi, it’s quite simple, i just add the plugin dk-pdf and the paste the shortcode on the form page, (i’d like to put on the alert message box, but didn’t work) so when u submit the for (disable Ajax ) the alert message is on the same page and u can save it or print let me know if u need help.

inicolabug

(@inicolabug)

ok solved! i ad a variable with all the values of the conditionals and in this way works perfect.
thanks for the great plugin

inicolabug

(@inicolabug)

i check all the condition to find some errors and i try to delete all the plugin but nothing change……. someone can help ? thanks

Viewing 13 replies - 1 through 13 (of 13 total)