This document was generated from CDN thread
Created by: null on 11-03-2004 07:45:56 AM
Hi,
How do I validate the String data in Setting for User input.
My requirement is for setting name "Data", if the user enters "|" character
I need to show an error pop up. And also I need to restrict the user for max 100 characters.
Regards,
Siv.
Subject: RE: Validation on user input for setting value
Replied by: Michael Bochynski on 11-03-2004 05:43:40 PM
Hi,
The Audium Builder validates the settings against it's type, hence it can check whether the user's input matches the required type. If the setting is of String type, the String itself is checked against illegal characters in terms of XML, and those are: [b:5736118714]< [/b:5736118714], [b:5736118714]>[/b:5736118714],[b:5736118714] "[/b:5736118714],[b:5736118714] '[/b:5736118714], and [b:5736118714]&[/b:5736118714]. The [b:5736118714] | [/b:5736118714] is allowed and won't be caught by the Builder.
However, the validation can be done at runtime, before entering the given element and the error can be logged in the log file.
Hope this helps,
Michael