Support » Plugin: Calculated Fields Form » Newbie that needs help

  • Resolved matlitel

    (@matlitel)


    Sorry a real newb here with no code experience but would appreciate some help with this plugin.

    There are 3 fields (<%fieldname1%> <%fieldname2%> <%fieldname3%>) for a user to input numbers, these numbers are multiplied together then the user will choose an option from a drop down list.

    Option A (poor insulation) will divide the total by 10

    Option B (average insulation) will divide the total by 15

    Option C ( well insulated) will divide the total by 25

    So far in the calculated field i have

    (fieldname1)*(fieldname2)*(fieldname3)

    This gives me the total for the first 3 fields and to divide that number i put this

    (fieldname1)*(fieldname2)*(fieldname3)/10

    But how do i divide the total by the option the user selects?

    http://wordpress.org/extend/plugins/calculated-fields-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Suppose that the drop down list is the fieldname4, so your equation is as simple as divide the total by the fieldname4:

    fieldname1*fieldname2*fieldname3/fieldname4

    Ok but to get that to work i have to put the numbers in the options the user selects but i don’t want the user to see the numbers. Example; Option A (poor insulation) will divide the total by 10 but i want the user to see ‘poor insulation’ and not the number does that make sense?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Newbie that needs help’ is closed to new replies.