I'm trying to use the script to make the Phone field mandatory in Transactions > Shipping Address >Ship To Select.
I know that we can check the checkbox in the settings - is mandatory field, but in my situation i need to use a script
When I click customize address form, I go to Custom Code and add my js, then click save. After that, for some reason, the existing form is not updated for me, but a new record is created
I thought it would work, but no.
I also tried to use the script immediately in the transaction form, it worked, but did not make the field mandatory.
Here is my test script code
If anyone knows how to do this or has experienced something similar, please help