Need some help customizing a module (mostly JS I think)

Events happening in the community are now at Drupal community events on www.drupal.org.
kyleheney's picture

Hi,

I've been trying for a while now to customize the Webform Calculator module so that it displays the formula results with 2 decimal places. I have been following and commenting on the issue (https://www.drupal.org/node/2354949) but have not been successful in figuring out a solution.

I have successfully modified the JS file to show two decimal places on the active form, but I don't know how to format the results on the Submission Results view (the formula results do not show two decimal places).

I am using this module (with Webforms) to create invoices for our business, but when the formula results print as $50 instead of $50.00, it comes off as very unprofessional.

I'd really appreciate some help with this and would be willing to help sponsor an update to the module that adds this functionality. I don't have the required knowledge to make this happen, so I'm really hoping someone else sees the value in this modification.

Thanks in advance for any help you can provide.

Comments

Might be able to help

joel_osc's picture

I think we may need this as well for an upcoming project - I may be able to have a look at this in the next few days.

That would be great. It's a

kyleheney's picture

That would be great. It's a feature that I think a lot of people could make use of.

I'd be happy to help with testing or anything else I can do on my end.

Thanks

Ottawa

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: