.disable() option does not work

Hi ! I’m facing quite an odd issue. The .disable function on a text input doesn’t seem to work.
I’ve tried to manually disable it, and add a bit of code that would enable it, and it worked. So why doesn’t the other way around work ?

Does not work:

if ($w('#radioGroup1').value === "Code Promo"){
        $w("#input4").value = "";
        $w("#input3").value = "";
        $w("#input3").disable();
    }

works (text input manually disabled beforehand)

if ($w('#radioGroup1').value === "Code Promo"){
        $w("#input4").value = "";
        $w("#input3").value = "";
        $w("#input3").enable();
    }

You’ll need to provide more information in order for us to be able to assist. Where do you have that code? When does it run?

Hi ! It would run on this page : https://www.wehaveadeal.net/deals/new

Here it the full code :

export function radioGroup1_change(event) {

 if ($w('#radioGroup1').value === "Gratuit") {
        $w("#input4").value = "GRATUIT";
        $w("#input4").hide();

    }

 else {
        $w("#input4").value = "";
        $w("#input4").show();
    }

 if ($w('#radioGroup1').value === "Code Promo"){
        $w("#input4").value = "";
        $w("#input3").value = "";
        $w("#input3").hide();
    }

 else {
            $w("#input3").show();
    }


}

I want to replace .show by .disable.

bump