Hypofriend Mortgage Widget
Thank you for choosing to add the Hypofriend Mortgage Widget to your page. The widget has been built to be fully responsive, allowing the user to interact with the widget on their phone, tablet or computer. The widget supports all modern browsers (see below for further information).
Demo
Widget Props
How to add the widget to your website
Step 1: It is recommended to add the JavaScript asset into the <head>
element, located at the beginning of your page.
Step 2: Add the hypofriend-calculator
HTML element into your main page.
We highly recommended that you wrap the element in a container, so it fits within the look and feel of your page. Otherwise the widget may take up 100% of the page width.
What does the widget do
Enabling testing mode
testing
mode by default in our example above. This will help us from getting mocked lead. When you add the widget to your page, and you want to test it out, we please ask you to enabled testing
as a attribute on the widget.Customising the widget
Name | Type | Default | Description |
---|---|---|---|
locale | enum | de | Sets the default language of the widget. The language can be changed by the user via the language switch.
options: |
financial-type | enum | purchase | Used to set what type of calculations will be done
options: |
property-price | number|string | 400000 | Sets the default property price. Used in the "purchase" calculation. |
down-payment | number|string | 60000 | Sets the default down payment. Used in the "purchase" calculation. |
commission | number|string | 0.00 | Sets the default commission. The commission value can be set between 0 and 3.57. Used in the "purchase" calculation. |
property-value | number|string | 400000 | Sets the default property value. Used in the "refinancing" calculation. |
remaining-loan-amount | number|string | 40000 | Sets the default remaining loan amount. Used in the "refinancing" calculation. |
payout-date | string | undefined | Selects the payout date that is pre-selected in the drop down. The format is 01/MM/YYYY eg: |
repayment | number|string | undefined | Sets the repayment rate, whith an interval steps of 0.5. Minimum is 1, maximum is 5. Used in both the "refinancing" and "purchase" calculation. |
postcode | number|string | undefined | Sets the default postcode. The postcode must be a German postcode, consisting of 5 digits. Used in both the "refinancing" and "purchase" calculation. |
tracking-id | string | undefined | Adds a unique tracking ID, which will be used when saving where the lead comes from. This is stored along side the domain name / |
skip-calculation | boolean | false | When enabled, no submission to the API to calculate the mortgage information is submitted. Instead we skip right to the contact form. |
testing | boolean | false | When enabled mode is enabled, the lead will not be submitted |
Capturing emitted event on form submission
What browsers does the widget support
Understanding our data policy for you and your customers
To inform us about any potential bugs
- Browser, and if possible, what version it is
- Operating system
- Device: mobile or desktop
- How can we reproduce the problem you're experiencing? What steps do we need to take?