Alpha Video Training
Results 1 to 3 of 3

Thread: to hide submit button to disabled if any control fails validation

  1. #1
    Member
    Real Name
    Travis Irby
    Join Date
    Oct 2017
    Posts
    25

    Default to hide submit button to disabled if any control fails validation

    looking for a method to hide the submit button if any field in the dialog fails validation

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,561

    Default Re: to hide submit button to disabled if any control fails validation

    The problem is that a user may not set focus to a field requiring validation. If you don't enter and exit a field with validation, validation doesn't fire until after you've clicked Submit.
    It gets a bit tricky.
    I've found you're better off validating data in the Submit click event. Let the user click Submit, and validate data. It's all done client-side, so that's good.

    Have a look at Video UX_V12--147

  3. #3
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,269

    Default Re: to hide submit button to disabled if any control fails validation

    You could create hidden validated controls for each control you want validated.
    Set the initial value for these fields to "fail".
    Then for each control that needs to be validated, put code in the onchange event
    to set the value for the hidden control to "Pass" if the control passes validation requirements.

Similar Threads

  1. JQuery to hide submit button in grid
    By coleresources in forum Mobile & Browser Applications
    Replies: 7
    Last Post: 11-06-2013, 05:12 PM
  2. Show/Hide Client side action button fails on Macintosh and iOS only
    By gregincolumbus in forum Application Server Version 11 - Web/Browser Applications
    Replies: 1
    Last Post: 01-26-2013, 11:23 AM
  3. hide submit button
    By Ken Tjia in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 06-06-2011, 12:08 AM
  4. Hide Search Submit button until criteria met
    By christappan in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 03-17-2011, 07:02 AM
  5. Submit button does fails on windows mobile ce 6
    By jorgecardenas1 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 11-01-2010, 10:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •