This topic is locked

Hide Uploaded FileName Field

1/6/2012 4:35:07 PM
PHPRunner General questions
S
salus1 authorDevClub member

Hi,

I've added a form to upload files (works great) but I cannot see any way to hide the "Filename" field that PHPRunner inserts. It doesn't show up in the editor, only in the published form (see image). Any ideas on how to hide this field? Again, this isn't a column in the database but an additional field that PHPRunner creates.

Thanks!

C
cgphp 1/6/2012

In the "Javascript onload" event of the Add page, enter the following code:

$("input[type='text'][id^='filename']").hide().parents('span').contents().filter(function(){ return this.nodeType == 3; }).remove();
S
salus1 authorDevClub member 1/6/2012

Outstanding! Works perfect, thanks a million.