You're welcome and I'm glad, that is does! :)
Cheers, Daniel
On Jan 8, 2010, at 5:42 PM, g0d br wrote:
> That works Daniel.
>
> Thank You
>
> On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse
> wrote:
> Set the validator for this specific field like this:
>
> $this->validatorSchema['imagem
That works Daniel.
Thank You
On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse
wrote:
> Set the validator for this specific field like this:
>
> $this->validatorSchema['imagem'] = new sfValidatorFile(array(
> 'required' => $this->isNew(),
> 'path' => ...
> ...
> ));
>
> So the field is only required
Set the validator for this specific field like this:
$this->validatorSchema['imagem'] = new sfValidatorFile(array(
'required' => $this->isNew(),
'path' => ...
...
));
So the field is only required when it's a new object. Is that what
Hi,
I still having this problem.
Im using sfWidgetFormInputFileEditable for a backend form and when i edit
the record with the image i have to choose the image file again otherwise i
get required error for the file.
the problem is that i don wanna change the file but every time i have to
choose
i get the error when i try to edit an record.
create and delete works fine but if i try to edit an record and dont select
any file when i hit save the required error appears.
Thanks
Celso
On Fri, Dec 11, 2009 at 5:11 AM, Alexandru-Emil Lupu
wrote:
> When you get that required error? Better wha
When you get that required error? Better what are you trying to achieve?
sent via htc magic
On Dec 11, 2009 1:11 AM, "g0d br" wrote:
Hi,
I have an schema like this:
banner:
id: ~
ordem: { type: integer, required: true }
imagem: { type: varchar(255), required: true }
link: { ty
Hi,
I have an schema like this:
banner:
id: ~
ordem: { type: integer, required: true }
imagem: { type: varchar(255), required: true }
link: { type: varchar(255), required: false }
When i edit an record in admin module i get an error Required for imagem
field.
Thats the code in B