• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation for Indexed types

 
Jobin Mathew
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I used

<formset>
<form name="LoginForm">
<field property="name" depends="required">
<arg0 key="Name Not Entered" resource="false"/>
</field>
.........................
these tags for validating name field. It is working fine.
But now I changed name to indexed one. ie many textboses are there.
name[0],name[1],................
ie the number of checkboxes are dynamic.
At this context how can I add validations to these dynamically generating text boxes.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, the validation framework does not have support for validating indexed properties.

- Brent
 
Jose Mon
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you suggest a convinient way or a commonly used way to meet this requirement. Do I need to write my own script for that?
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not use the client-side JavaScript validation. When I have had to validate indexed properties I just implemented the validation in the form's validate method.

- Brent
 
Jose Mon
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any way to do client side validation for indexed textboxes?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You can do it in server-side validation by specifying an indexedListProperty attribute with the <field> tag, but it is not supported in client-side validation. See the example I gave this thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic