Input mask

HelloI used inputmask in the 2019 version as follows:ServerEvents->Global->AllPages->Page_Head
AddClientScript(“jquery/jquery-3.6.0.js”);
AddClientScript(“jquery/inputmask.js”);
AddClientScript(“jquery/inputmask.dependencyLib.js”);
AddClientScript(“jquery/inputmask.extensions.js”);
AddClientScript(“jquery/inputmask.date.extensions.js”);
AddClientScript(“jquery/inputmask.numeric.extensions.js”);
AddClientScript(“jquery/inputmask.phone.extensions.js”);
AddClientScript(“jquery/inputmask.regex.extensions.js”);
AddClientScript(“jquery/jquery.inputmask.js”);andClientScripts->Blobal->Table-Specific->Add/Copy Page->StartupScript:
$(“#x_phone”).inputmask(“(99) 99999-9999”);
$(“#x_zip”).inputmask(“99999-999”);
$(“#x_date”).inputmask(“99/99/9999”);In version 2021, it doesn’t work.

Note: I’m using composer.Can someone help me?thanks

You may refer to Example 5 of Page_Head server event from the Help menu of PHPMaker 2021.

Please note, since version 2021, PHPMaker uses loadjs to load JavaScripts and stylesheets asynchronously, you can use loadjs() and loadjs.ready() functions in your tags.

Macunaima wrote:

AddClientScript(“jquery/jquery-3.6.0.js”);

Do not include jQuery again.

Thanks for the help, although I was not successful with these guidelines. I solved the problem by switching to the simpler and more efficient VanillaMasker.