Hi Guys, 

I have a following piece of code in my *.tml file:

<t:form>
   <input type="text" t:type="textfield" t:value="toCreate.name"
t:validate="required"/>

   <input type="submit" t:type="submit" t:id="cancelButton" value="Cancel"/>
   <input type="submit" t:type="submit" t:id="nextButton" value="Next"/>        
        
</t:form>
        
As you can see I added two submit buttons and a validation to a textfield.
The problem is that I would like to 'turn on' this validation only when user
clicks Next button.
Currently when the textfield is empty and Cancel button is clicked the T5
says that field cannot be empty.

Probably this is possible on server side only but maybe I am wrong.
        
Thanks in advance       
kawes
-- 
View this message in context: 
http://www.nabble.com/-T5-5.0.18----How-to-%27turn-on%27-dynamic-validation-tp21020626p21020626.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to