Dec 26, 20223:10 AM - edited Dec 26, 20223:14 AM
Member
Possible to make a calculator online?
Users can gain access to some of the best online free Engineering calculators, and one of them is WolframAlpha. This will display your expression made as a graph via automatic processing in different forms and on a number line. It also produces questions directly linked to your inputted expression that should assist you in uncovering more about it and how it functions. It has a number of different features that are accessible to those who pay a monthly fee. These features contain some step-by-step ways to deal with the error, practice problems with hints, guided calculators for finance, and from here you will learn a lot more.
Jul 12, 20193:15 AM - edited Jul 12, 20196:05 AM
Participant
Possible to make a calculator online?
I went through all the steps, and it seems as though my problem becomes apparant in Step 2 and 4. The issue is that the "result"/hidden field doesn't write out a calculation (or anything else) when I write input into the form.
I made a form as shown in the tutorial. I then found and made the changes to the form embed code (Took it from "Share Form" made in step 1 in Hubspot). This is my full code, with the calculation JavaScript on the top, then the Form Embed Code and the last HTML module line on the bottom.
<script>
var result = 0;
function calculateProfResult($form){
// first we need to store all the info for the different facts that the calculation depends on
// in a simple array/dictionary
var factsDict = new Array();
factsDict['Average Salary'] = 50000; // Average US salary 3
factsDict['Revenue per Employee'] = 160000; // Average revenue generated per employee
factsDict['Absentism'] = 35%; // Absentism increases by 35% with poor IAQ
factsDict['Productivity'] = 10%; // Productivity decreases by 10% with poor IAQ
// get the companys absence rate from the form ...
var companyAbsRate = $form.find('input[name="absence_rate"]').val();
what exactly do you want to "display"? So kind of checkboxes and radio buttons where the visitor/customer can simply click/select and then the price will be modified?
Like:
"You're paying 1000€ per month"
...
and with a selection of an option the "1000€" will be modified to a lower price?
If so you can use the tutorial from hubspot - but you have to know/understand JS(JavaScript) and CSS(for styling the "form").
You could also google for "cost calculator +script", "cost calculator +generator" or similar. After a quick search for "cost calculator html"(yeah - html is not the best one but it can lead to better google results) I've found this litte helper: JScalc.io
I think after a quick look in the documentation and the youtube video you should be able to get yourself a calculator which matches your needs.
You can also look for something completly different like a standalone script(one source could be codecanyon.net(most likely you have to buy the scripts and watch out to not to pick something for a CMS plugin like for wordpress). Maybe this script will match your needs? If you decide to get a standalone solution you will need to modify it localy(best case) in a code editor(atom.io, adobe brackets, adobe dreamweaver, notepad++ ...), upload it to HubSpot via the file manager and connect it to a HubSpot page.
If you have hardly experience with coding I would suggest to use an online generator like JScalc.io