“Telephone” is a required value not working in customer edit form

Welcoming 2019 Pi day: How to draw the letter π?

Does Linux have system calls to access all the features of the file systems it supports?

"One can do his homework in the library"

Coworker uses her breast-pump everywhere in the office

Why doesn't the EU now just force the UK to choose between referendum and no-deal?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

Can the druid cantrip Thorn Whip really defeat a water weird this easily?

Sword in the Stone story where the sword was held in place by electromagnets

Why would a jet engine that runs at temps excess of 2000°C burn when it crashes?

My story is written in English, but is set in my home country. What language should I use for the dialogue?

How do anti-virus programs start at Windows boot?

Time travel short story where dinosaur doesn't taste like chicken

How can I discourage/prevent PCs from using door choke-points?

Is King K. Rool's down throw to up-special a true combo?

Do f-stop and exposure time perfectly cancel?

Plywood subfloor won't screw down in a trailer home

My adviser wants to be the first author

Life insurance that covers only simultaneous/dual deaths

Do I need to leave some extra space available on the disk which my database log files reside, for log backup operations to successfully occur?

Why do Australian milk farmers need to protest supermarkets' milk price?

Playing ONE triplet (not three)

Make a transparent 448*448 image

How to make readers know that my work has used a hidden constraint?

Does anyone draw a parallel between Haman selling himself to Mordechai and Esav selling the birthright to Yaakov?



“Telephone” is a required value not working in customer edit form














0















In my customer edit form, for telephone phone, required field validation is not working when I leave the telephone field blank.
The required validation works for every field except for the telephone field.



When I save the form without telephone field, after the backend call it gives me a notification message " telephone" is required. Enter and try again.



enter image description here



This is code for password field in my form



<div class="field telephone required">
<label for="telephone" class="label">
<span>
Phone Number
</span>
</label>
<div class="control">
<input type="text" name="telephone" id="telephone" value="" title="Phone Number" class="input-text " sr-only="INPUT" for="INPUT" aria-required="true">
</div>




I even checked eav_attribute table. It has is_required=1 for attribute_code='telephone'



I don't want notification, it should be like other fields inline validation.









share


























    0















    In my customer edit form, for telephone phone, required field validation is not working when I leave the telephone field blank.
    The required validation works for every field except for the telephone field.



    When I save the form without telephone field, after the backend call it gives me a notification message " telephone" is required. Enter and try again.



    enter image description here



    This is code for password field in my form



    <div class="field telephone required">
    <label for="telephone" class="label">
    <span>
    Phone Number
    </span>
    </label>
    <div class="control">
    <input type="text" name="telephone" id="telephone" value="" title="Phone Number" class="input-text " sr-only="INPUT" for="INPUT" aria-required="true">
    </div>




    I even checked eav_attribute table. It has is_required=1 for attribute_code='telephone'



    I don't want notification, it should be like other fields inline validation.









    share
























      0












      0








      0








      In my customer edit form, for telephone phone, required field validation is not working when I leave the telephone field blank.
      The required validation works for every field except for the telephone field.



      When I save the form without telephone field, after the backend call it gives me a notification message " telephone" is required. Enter and try again.



      enter image description here



      This is code for password field in my form



      <div class="field telephone required">
      <label for="telephone" class="label">
      <span>
      Phone Number
      </span>
      </label>
      <div class="control">
      <input type="text" name="telephone" id="telephone" value="" title="Phone Number" class="input-text " sr-only="INPUT" for="INPUT" aria-required="true">
      </div>




      I even checked eav_attribute table. It has is_required=1 for attribute_code='telephone'



      I don't want notification, it should be like other fields inline validation.









      share














      In my customer edit form, for telephone phone, required field validation is not working when I leave the telephone field blank.
      The required validation works for every field except for the telephone field.



      When I save the form without telephone field, after the backend call it gives me a notification message " telephone" is required. Enter and try again.



      enter image description here



      This is code for password field in my form



      <div class="field telephone required">
      <label for="telephone" class="label">
      <span>
      Phone Number
      </span>
      </label>
      <div class="control">
      <input type="text" name="telephone" id="telephone" value="" title="Phone Number" class="input-text " sr-only="INPUT" for="INPUT" aria-required="true">
      </div>




      I even checked eav_attribute table. It has is_required=1 for attribute_code='telephone'



      I don't want notification, it should be like other fields inline validation.







      magento2 customer forms form-validation





      share












      share










      share



      share










      asked 2 mins ago









      summusummu

      3088




      3088




















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265834%2ftelephone-is-a-required-value-not-working-in-customer-edit-form%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265834%2ftelephone-is-a-required-value-not-working-in-customer-edit-form%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Nidaros erkebispedøme

          Birsay

          Was Woodrow Wilson really a Liberal?Was World War I a war of liberals against authoritarians?Founding Fathers...