1 Reply Latest reply on Nov 20, 2007 8:03 AM by Pete Muir

    s:decorate how to use invalid on first page hit

    mars1412 Apprentice

      what I'd like to for input fields:

      • user opens page: show no image after the input field
      • invalid input: show a red sign
      • valid input: show a green sign
        how would I do that?

        when using s:decorate you can use the vars invalid and required inside of the template
        but how I can find out (in the template), if this is the very first time, that the page is being rendered?

        more details:
        when the page is rendered for the first time, invalid will be false for all input fields (which is strictly speaking not really correct for e.g. required fields)