Support » Plugin: Mortgage Calculator » percent

  • Resolved mausoftware

    (@mausoftware)


    would it be possible to set default percent (%) and/or set field read-only (user can’t change it)
    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Welcome to Customer Support.

    This is Sungraiz and from now on, I’ll be at your assistance.

    You can do it by adding the following code in JS file.

    window.addEventListener('DOMContentLoaded', (event) => {
        let interest = document.getElementById('mc-interest-rate');
        if (typeof (interest) != 'undefined' && interest != null) {
            interest.setAttribute('value', '10');
            interest.setAttribute('disabled', true);
        };
    });

    Let me know if there is anything else i can do for you. I’ll be happy to assist.

    ​Sincerely,

    Thread Starter mausoftware

    (@mausoftware)

    thanks. I’m not sure where should I put this. in which JS file?

    Thread Starter mausoftware

    (@mausoftware)

    ah ok, solved.
    easy
    i put in my
    js/child-custom.js

    Wishlist: could be better add separate section in setting plugin

    Hi,

    I’m glad I was able to assist you and we so appreciate your business.

    We would love it if you shared this experience as a review of this plugin.

    ​Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘percent’ is closed to new replies.