WordPress.org

Ready to get started?Download WordPress

Forums

Calculated Fields Form
[resolved] problem with calculated field (9 posts)

  1. mhecht2013
    Member
    Posted 8 months ago #

    Hi, plugin is great.
    Is it possible that an equation of a fielname is a result of other calculated fields ?
    Fieldname 4 = calculated fieldname1 + calculated fieldname2 +...
    I have tried to make it simple as an addition but it failed.

    Do I have to type and add all the equations related to each calculated fieldname 1, 2,... into the Fieldname 4 or is there a simpler way ?

    Forgive my ignorance.
    Thank you in advance.

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

  2. codepeople
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    You may have multiple calculated fields, where one of them is the sum of the others, for example suppose we have four calculated fields: fieldname1, fieldname2, fieldname3 and fieldname4, with the corresponding equations, and one additional calculated fields fieldname5 whose equation is:

    fieldname1+fieldname2+fieldname3+fieldname4

    You only must be sure not created a loop between the equations.

  3. mhecht2013
    Member
    Posted 8 months ago #

    Thank you for your reply.
    I don't think I have created a loop.
    In addition, I have added some new fieldnames and they didn't show up in the form.
    I really do not know what is happening.
    Would you help and look at the form please ?
    The webpage is the same as previous ticket.

  4. codepeople
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    I've detected the issue in your form, first all, you should correct the structure of tags used in the attribute "label", in multiple fields, because the structure used is not correct.

    And finally, and this part is very important, go to the calculated field:

    "Economies d'eau en m3"

    and set an space in the suffix attribute.

    Best regards.

  5. mhecht2013
    Member
    Posted 8 months ago #

    Waow !
    As I don't want to die totally ignorant, could you explain why a simple space in the suffix attribute has solved the problem ?
    Thank you very much.
    Best regards

  6. codepeople
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    Previously was entered an invalid character in the "suffix" attribute of the field. So, is required to type a new value in the "suffix" attribute, to update the attribute's value in database.

  7. Svetlin
    Member
    Posted 6 months ago #

    Hi,
    I have calculation problem. Every time I try to insert multiplication with number smaller then 1 shows me not precision number: For example:
    3*0.1=0.30000000000000004

    Can you please advice? Thank you.

  8. codepeople
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    This issue occur in the javascript engine, to get a precise number, uses the "prec" operation:

    prec(3*0.1,2)

    the result will be:

    0.30

  9. Svetlin
    Member
    Posted 6 months ago #

    Thank you.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.