07-04-2016 11:33 AM
Hi All,
I want to validate a setting of type string.How can I achieve this. The below is my setting array.
settingArray[0] =
new Setting( MENU_ID,
MENU_ID,
MENU_ID,
Setting.REQUIRED,
Setting.SINGLE,
Setting.SUBSTITUTION_ALLOWED,
Setting.STRING);
Here is the setting name is Menu_id which of type string, I want to validate the length of this setting, if I enter menu id as 12345, it should allow only first 3 digits. Is this possible in vfc. Thanks in advance
07-12-2016 10:23 AM
Are you receiving an error?
07-12-2016 10:49 AM
No I didn't get any errors, but this setting allow me to enter any length of digit,but it should accept only 3 number digit only.
10-19-2016 03:53 AM
There are Setting Constructor for integer range, but String length range Setting Constructor is currently not available.
11-18-2016 12:34 PM
Thanks Gourav, I'll look into that constructior
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide