0

I was wondering, is there anything like webform calculator for entity forms?

  • Can you elaborate a bit? Entity forms use CCK fields, so you could run the fields through a view and do the math there? – Collins Mar 3 '15 at 22:28
  • Below is a very detailed tutorial to help you Calculate Field Values Using Computed Field in Drupal 7 , and on bottom you will find the module and snippets you need to do it, i hope i helped. – Alkios Mar 3 '15 at 23:25
  • What I want is, I have an entity form where some calculations are needed based on previous field within form itself without page refresh before saving a form. For eg, I have field A , field B and field C in a form, value of field C = value of field A + value of field B. I want this to happen when user enters data in form, this operation should be valid while creating and editing of a form as well – user24189 Mar 4 '15 at 3:30
  • This does after saving. What I want is, I have an entity form where some calculations are needed based on previous field within form itself without page refresh before saving a form. For eg, I have field A , field B and field C in a form, value of field C = value of field A + value of field B. I want this to happen when user enters data in form, this operation should be valid while creating and editing of a form as well – user24189 Mar 4 '15 at 3:35
  • 1
    Maybe do this with jquery instead? Have a look at forum.jquery.com/topic/calculation-on-form-fields Just add three fields, and get jquery to populate the third field using values entered in real time from the first two. Dont forget $ is undefined in Drupal, so wrap it in jQuery – Collins Mar 4 '15 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy