diff --git a/templates/job-order/form.html.twig b/templates/job-order/form.html.twig index f2f57dbb..a0e5985c 100644 --- a/templates/job-order/form.html.twig +++ b/templates/job-order/form.html.twig @@ -1066,6 +1066,14 @@ $(function() { {% endfor %} {% endif %} + // disable the enabled customer fields + {% if mode != 'create' %} + $("#customer-email").prop("disabled", true); + $("#flag-dpa-consent").prop("disabled", true); + $("#flag-promo-sms").prop("disabled", true); + $("#flag-promo-email").prop("disabled", true); + {% endif %} + $("#row-form").submit(function(e) { if (form_in_process) { alert("Cannot submit form twice. First submission still in progress.");