szenczi
Posts: 67
|
| Posted: 08/18/2008, 5:58 AM |
|
Hi,
In a record form I disable a textbox in certain cases. This field is required. If the textbox is disabled and I submit the form in edit mode I get an error, that this field is required, cannot be empty. But the field originally got the correct value! Why will be empty pushing the button?
Thanks, Norbert
_________________
CCS5.1, PhP, MySQL |
 |
 |
wkempees
Posts: 1679
|
| Posted: 08/18/2008, 6:08 AM |
|
It is not being emptied........
It is disabled, therefore it is not posted when you press submit.
The validation is still firing but as the data is not posted it is evaluated empty.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
szenczi
Posts: 67
|
| Posted: 08/18/2008, 6:44 AM |
|
Thank you!
So I must store the value somewhere, from where I can send it. It is correct?
Norbert
_________________
CCS5.1, PhP, MySQL |
 |
 |
datadoit
|
| Posted: 08/18/2008, 7:01 AM |
|
Stick it in a hidden form field.
|
|
|
 |
szenczi
Posts: 67
|
| Posted: 08/18/2008, 7:34 AM |
|
Thank you!
Norbert
_________________
CCS5.1, PhP, MySQL |
 |
 |
|