As Anthony said, to avoid showing the delete checkbox just do
something like this:

Field('pic', 'upload', requires=IS_IMAGE()),


On Jun 6, 6:31 pm, Richard Vézina <ml.richard.vez...@gmail.com> wrote:
> I understand your need!!
>
> I just don't know neither how to do it... It was the only piece of the book
> I come up with after few reading and searching...
>
> I thought the option could make the file/delete box to desapered...
>
> Work around could to use jQuery to make the whole block to desapeare... Just
> look to the source html render view to know what the ID of the div or other
> element it could be and add this jQuery into your view :
>
> $(".class" or ".id").remove();
>
> Richard
>
> On Mon, Jun 6, 2011 at 12:38 PM, Luis Goncalves <lgoncal...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi Richard!
>
> > I'm displaying the form to the user for them to update it.  There are
> > several fields in the form, and one of them is an image ('upload' field).
>
> > I just don't want to display the  "delete file" checkbox for the image,  so
> > that the user can't delete the image.  They can upload a new one, but they
> > can't delete it to not have an image.
>
> > The record itself is not to be deleted either, but that's not even an
> > option for the user right now.
>
> > Thanks!!
>
> > Luis

Reply via email to