Page 1 of 1

Re: hide file name and size

Posted: Mon Feb 19, 2018 8:13 am
by barka

i have table news with fields:
photo (for upload photo) and doc (for upload document)

how to hide file name and file size in add and edit page?


Re: hide file name and size

Posted: Mon Feb 19, 2018 10:05 am
by mobhar

Simply use "Row_Rendered" server event, for example:

if (CurrentPageID() == "add" || CurrentPageID() == "edit") {
$this->photo->Visible = FALSE;
$this->doc->Visible = FALSE;
}


Re: hide file name and size

Posted: Tue Feb 20, 2018 12:42 am
by barka

Thank you for reply.
For example. I have file named pic1.jpg and has size 300 kb.
When i press "choose" button for choosing file, file name (pic1.jpg) and file size (300 kb) show in add and edit page.
How to hide file name and file size before pressing submit button.


Re: hide file name and size

Posted: Tue Feb 20, 2018 1:53 pm
by mobhar

It is not supported by using Server Events nor Client Scripts. In addition, the file name and file size of the uploaded file should always be shown (and should not be hidden/removed), so that user know which files they uploaded, and the file size of the uploaded files itself.


Re: hide file name and size

Posted: Wed Feb 21, 2018 1:42 pm
by barka

thank for advice