Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Datatype which does not allow special characters.

Former Member
0 Likes
2,167

Hi All,

I have a requirement, I have a field description which should not take any special characters(i.e., it should accept only alphabets and numbers).

I have wrritten the code but it is not working when given space in the field.

Is there any datatype which will not take special characters?

Hi All,

I have a requirement, I have a field description which should not take any special characters(i.e., it should accept only alphabets and numbers).

I have wrritten the code but it is not working when given space in the field.

Is there any datatype which will not take special characters?

3 REPLIES 3
Read only

OttoGold
Active Contributor
0 Likes
1,302

Hello,

I have never heard about such thing. I think you will have to accept any input and trigger some validation after the input is submitted. In this validation you will test the pattern and if that is not accepted, you will delete the value from the field. I think this is how these things are done.

Regards Otto

Read only

Former Member
0 Likes
1,302

Hi,

Please paste ur code snippet if the approach is still not workig. General logical coding would do for such cases

which are quite common around.

Regards

Dedeepya

Read only

Former Member
0 Likes
1,302

Short answer: No. But you can enforce with the CO operator and a string that contains only the valid values you want to appear in the field, and comparing the field content to your valid value list string...