|
主题: 关于textfield内空白的问题!!
|
 herdsboy
职务:普通成员
等级:1
金币:0.0
发贴:131
|
#12001/5/20 21:52:53
关于textfield内空白的问题!!如果在数据库里定义的某个字段为必填的话,某个textfield不填就会有什么obdc错误之类的,有什么办法在ud里规定用户必填字符的?一旦不填,趟出msgbox警告一下?
|
 weicong
职务:普通成员
等级:1
金币:1.0
发贴:136
|
#22001/5/20 22:47:22
到www.cmmail.com看看别人怎么写,参考参考.
|
 herdsboy
职务:普通成员
等级:1
金币:0.0
发贴:131
|
#32001/5/21 9:49:34
没有哇?对了weicong.我这问题本来就是要问你的,忘了打上去了,能不能跟我说清楚一点?
|
 weicong
职务:普通成员
等级:1
金币:1.0
发贴:136
|
#42001/5/21 10:54:45
你的mail,我看了,看看我回给你的mail吧!
|
 blshfw
职务:普通成员
等级:1
金币:1.0
发贴:241
|
#52001/5/22 10:47:00
很简单呀!在behaviors里有个Validate Form行为是专门来验证窗体的文本输入的。有问题mail我:fw@gxkc.com.cn ;)
|
 weicong
职务:普通成员
等级:1
金币:1.0
发贴:136
|
#62001/5/22 13:33:07
噢!我一直都人工写!!!!! herdsboy,这样更方便!
Validate Form
The Validate Form action checks the contents of specified text fields to ensure that the user has entered the correct type of data. Attach this action to individual text fields with the onBlur event to validate the fields as the user is filling out the form, or attach it to the form with the onSubmit event to evaluate several text fields at once when the user clicks the Submit button. Attaching this action to a form prevents the form from being submitted to the server if any of the specified fields contains invalid data.
To use the Validate Form action:
1 Choose Insert > Form or click the Form button on the Objects panel to insert a form. 2 Choose Insert > Form Objects > Text Field or click the Text Field button on the Objects panel to insert a text field. Repeat this step to insert additional text fields. 3 Do one of the following: To validate individual fields as the user fills out the form, select a text field and choose Window > Behaviors. To validate multiple fields when the user submits the form, click the
|
 herdsboy
职务:普通成员
等级:1
金币:0.0
发贴:131
|
#72001/5/23 13:47:45
谢谢你们了!哇,好长的英文,读的我好辛苦,问题解决了,啥时候请你们吃一顿。
|
 blshfw
职务:普通成员
等级:1
金币:1.0
发贴:241
|
#82001/5/24 10:54:07
那我要吃肯德鸡!!
|
 weicong
职务:普通成员
等级:1
金币:1.0
发贴:136
|
#92001/5/25 10:21:27
我要麦当劳.
|