Help text values inline

The calculator displays help text in the form of a pop up when a field receives focus. You can customize the text displayed to the user. The JSON object used in the data-defaults attribute can contain custom help text. Refer to the default properties help text documentation.

Basic Example - Setting the gross pay field to have a custom help text message

grossPay - Hello, this is custom help text for the gross pay field

<script async src="https://calculators.symmetry.com/widget/js/salary.js?key=yourKey" 
    data-defaults='{"helptext":{"grossPay":"Hello, this is custom help text for the gross pay field"}}'></script>

The widget will accept custom text for each form field. View the default properties documentation to see the names of the form fields.


Jump to top