You need to initialize this lang phrase first somewhere in tpl file
For example, in footerScript.tpl
after:
lang.login = "{phrase key='login'}";
add your case:
lang.phrase_key = "{phrase key='phrase_key'}";
and then you can use it in form.js
You need to initialize this lang phrase first somewhere in tpl file
For example, in footerScript.tpl
after:
lang.login = "{phrase key='login'}";
add your case:
lang.phrase_key = "{phrase key='phrase_key'}";
and then you can use it in form.js