Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Field validation and/or code in a custom table field View modes: 
User avatar
Guest
DHood - 10/29/2012 2:33:02 PM
   
Field validation and/or code in a custom table field
Hello,

Can a field in a custom table have custom validation code behind it? We need to be able to do some custom code to verify fields before they are saved.

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/30/2012 3:15:31 AM
   
RE:Field validation and/or code in a custom table field
Hi,

You need to modify the given form control - if its code files are available or create a custom form control with given logic you need.

Best regards,
Juraj Ondrus

User avatar
Guest
DHood - 10/30/2012 11:37:08 AM
   
RE:Field validation and/or code in a custom table field
So we can create a form and attach it to a custom table so that a user can add, change, delete data from the table using the form?

Sorry if this is a dumb question, we are still learning all of the capabilities of Kentico.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/31/2012 2:56:01 AM
   
RE:Field validation and/or code in a custom table field
Hi,

I am sorry but I am not sure which form you mean right now?
when defining the custom table - you are adding some fields to it - the fields are represented by some form controls - text box, drop down list, etc. So, you can create a custom text box form control with the validation logic you want and then use this form control instead of the default text box.

Best regards,
Juraj Ondrus