WordPress.org

Ready to get started?Download WordPress

Forums

Calculated Fields Form
[resolved] Newbie that needs help (3 posts)

  1. matlitel
    Member
    Posted 1 year ago #

    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/

  2. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. matlitel
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.