开发者

input filtering in CCK fields,how is it possible?

开发者 https://www.devze.com 2023-01-28 06:29 出处:网络
i have added to new fields using CCK to my custom content type. there are email and phone number and i want to restrict their input to just numbers for phone number field and special pattern to email

i have added to new fields using CCK to my custom content type. there are email and phone number and i want to restrict their input to just numbers for phone number field and special pattern to email field.

how can i d开发者_开发百科o that?

thank you in advanced.


There are specific CCK field types for phone number and specific CCK field types for email. You should use these instead of CCK text fields as they automatically validate/restrict the input.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号