Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Tab showing error icons?

    For a form with tabs, is there a way to show when a field on a tab has an error? Instead of the user selecting each tab to see if there is an error, or showing a popup, is there a way to add an error icon to a tab (or more depending on the number of fields that have issues) when a form fails validation? lets say using the ValueManager? (I know I could add this code manually, but I wanted to make sure there wasn't some API that I have over looked).

    Thanks

    #2
    Tankdom..

    You've actually asked a question I can answer.. Yes, you can and it should just work by default unless you've changed something.. Take a look at the form splitting demo ((http://www.smartclient.com/smartgwt/showcase/#layout_form_splitting) as it will show the source and if you try to save without filling out required fields those fields will be flagged (each one on each tab) with a red circle with an "X" in the middle -- if you hover over it, it will indicate that the field is required.

    By the way.. I'd be curious if you see the warnings I see when using multiple tabs in a hand-rolled form with the valuemanager et-al.. I've got a thread that describes what I'm seeing on my end -- not sure if I've done something wrong or ?? I tailored my code after the code on the above link which I'm thinking must be generating the same warnings as I see no obvious difference between what I'm doing and the sample code.

    Here's the link to my issue:
    http://forums.smartclient.com/showthread.php?t=20486

    HTH!

    Comment


      #3
      Thanks for the response. I did see that demo, but I am more concerned with multiple tabs that have errors, could we have the tab show an indication that it contains a failed field (and if you have many tabs with errors, then you would be able to see all the tabs at once that have errors, without fixing one by one, then submitting).

      Comment


        #4
        Ahh.. I missed that detail.. I'll leave the response to Iso..

        Comment

        Working...
        X