This is a migrated thread and some comments may be shown as answers.

Validation my additional fields

2 Answers 118 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Engwar
Top achievements
Rank 1
Engwar asked on 12 May 2008, 08:22 PM
I have created a photo-upload feature for our website using radUpload. We want users to provide a title and description for each image. The 'Adding Additional Fields' example did the trick there.

How would one go about validating these additional fields so that we can require the title/description?

Anyone have an example?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 14 May 2008, 03:08 PM
Hi Engwar,

To validate the additionally added fields such as title/description I suggest you add a custom validator and use a client validation function which checks the value of the title/description fields at submit button click and sets the custom validator's arguments as valid/invalid accordingly. For your convenience I have attached a sample page which demonstrates how you can achieve the mentioned above. You can feel free to modify it so that it answers the requirements of your scenario. If you want to display error messages next to the invalid textboxes you can combine the attached example with the idea demonstrated in the Code Library - Validate Extensions for Each File Input Client-side.

If you need further assistance, do contact us again.

Best wishes,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nikesh Bhagat
Top achievements
Rank 1
answered on 18 Nov 2009, 02:52 AM
This is very useful, but...

How would one go about validating checkbox controls that have been additionally added to the radupload control so that only one checkbox can be checked at a time?
Tags
Upload (Obsolete)
Asked by
Engwar
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Nikesh Bhagat
Top achievements
Rank 1
Share this question
or