Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

SmartyValidate on form with dynamic rows

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
BbErSeRkK
Smarty Rookie


Joined: 04 Jan 2008
Posts: 14

PostPosted: Wed Apr 16, 2008 5:18 am    Post subject: SmartyValidate on form with dynamic rows Reply with quote

Hi I'm using Smarty Validate to validate a form/table that has multiple rows,

The user can also add more rows to the table dynamically using jquery/javascript
(it clones the previous row, incrementing the id="id#")

I want to be able to validate the fields in the tables as well as the dynamic rows?

Even if i wrote a custom validator, i would still have trouble with the tags in the template {validate id="..."} as they are static and are registered on first load. I can generate the tag

Has anyone done anything similar before?

for searches: SmartyValidate Smarty Validate Javascript Validation Dynamic Form Rows
Back to top
View user's profile Send private message
BbErSeRkK
Smarty Rookie


Joined: 04 Jan 2008
Posts: 14

PostPosted: Wed Apr 16, 2008 11:41 pm    Post subject: multi dimensional arrays Reply with quote

Also has anyone had any success with multi-dimensional arrays?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP