“Telephone” is a required value not working in customer edit formAdding custom fields on to frontend...

Is all copper pipe pretty much the same?

What Happens when Passenger Refuses to Fly Boeing 737 Max?

How to draw a 3Dbox around a Graph3D result

Playing ONE triplet (not three)

Rejected in 4th interview round citing insufficient years of experience

What injury would be of little consequence to a biped but terrible for a quadruped?

Replacing Windows 7 security updates with anti-virus?

What is the dot in “1.2.4."

Can "semicircle" be used to refer to a part-circle that is not a exact half-circle?

How could our ancestors have domesticated a solitary predator?

My adviser wants to be the first author

"One can do his homework in the library"

Why must traveling waves have the same amplitude to form a standing wave?

Excess Zinc in garden soil

Silly Sally's Movie

Is it illegal in Germany to take sick leave if you caused your own illness with food?

Want to switch to tankless, but can I use my existing wiring?

Identifying the interval from A♭ to D♯

Coworker uses her breast-pump everywhere in the office

Is it ok to include an epilogue dedicated to colleagues who passed away in the end of the manuscript?

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

Plywood subfloor won't screw down in a trailer home

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

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


Adding custom fields on to frontend formsI need to add some form validation for telephone field on admin side for magentoJs Form Validation error disappearAdmin form validation - making image file upload requiredDate validation on my custom form on frontend magento 2Magento 2 add custom product attribute validation from install scriptMagento 2 Add new field to Magento_User admin formCustom added field to checkout is not validating when I go the next stepMagento 2 - Validate input number and allow only two digits after decimal point and submit form via AJAX“Telephone” is a required value 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 4 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

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...