WordPress.org

Ready to get started?Download WordPress

Forums

Calculated Fields Form
[resolved] Bug? or Dumb (3 posts)

  1. prof_essor
    Member
    Posted 1 year ago #

    Hello,

    first post, so apologies for any mistakes.

    great plugin and if i Manage to get it working I will consider buy the PRO version (especially if it offers a calendar-screen option).

    This question is in reference with the Calculation_with_Dates form.

    I am trying to use this plugin for a small family-run B&B website and I would like to give clients the option to choose/select a room type, (Dorm Bed, Single, Double, etc.) before getting an estimate (which by default is calculated as 50$).

    Of course, each room has a different prize so I added as many 'calculated fields' as needed in the form, each one with this formula:
    abs(fieldname2-fieldname1) * (fieldname3+20)
    abs(fieldname2-fieldname1) * (fieldname3+30)
    abs(fieldname2-fieldname1) * (fieldname3+40).

    Then, in the 'check-box field setting', under the 'show dependencies' link, I added the
    Choices help? Hide Dependencies
    Text: Dorm Value: Dorm
    If selected show: Dorm (from the drop down list).

    So far so good! I refresh the form (running in my localhost server) and for every checkbox I tick the right calculated field shows up; however, after selecting the dates, and possibly even any/all the optional services, I get not value! It remains blank.

    The only way to have the calculated field to return its correct amount is if I DO NOT select:
    Choices help? Hide Dependencies
    Text: Dorm Value: Dorm
    If selected show: (blank)

    What am i missing?

    I would have added screenshots to better explain myself, but I didn't find such option in this forum page.

    Thanks in advance for any suggestions.

    Regards

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

  2. prof_essor
    Member
    Posted 1 year ago #

    The answer was: Dumb!
    I worked it out. It was a formula problem.

    abs(fieldname2-fieldname1) * (fieldname3 + fieldname10)

    where (fieldname10) is the value I assigned to each individual room (checkbox setting)

  3. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Sorry for the late. Nice to hear that you already found the solution.

    Thank you for using the plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.