amp html - Detecting Valid Input on amp-form -
is there event enables detect when input has been updated?
the closest have managed below detects value has changed , not check whether valid input. i'm using amp-bind enable navigation button guide user through form.
the objective make sure user cannot proceed until there valid entry in each input.
<input type="text" id="postcode" name="postcode" placeholder="postcode" pattern="[a-za-z]{1,2}[0-9rr][0-9a-za-z]? [0-9][abd-hjlnp-uw-zabd-hjlnp-uw-z]{2}" on="change:amp.setstate({mainapplication: {postcode: event.value}})" class="user-invalid valuemissing" aria-invalid="true" required> <button id="nextsection-2" type="button" class="button large alert" on="tap:apply-section-2.show,apply-section-1.hide" [disabled]="!mainapplication.ownerstatus || !mainapplication.postcode || !mainapplication.housenumber" disabled> next </button>
the closest thing found this issue, may want explain case there check if it's same issue.
Comments
Post a Comment