sanjarhakimi's avatar

Remove File

On my Form, the User can browse to upload their file. {{ Form:file('file', null) }}

But I also want to add a Remove button/link next to the filename if they change their mind.

Suggestion?

0 likes
6 replies
ctorresr's avatar

Are you looking to soft delete or hard delete?

sanjarhakimi's avatar

If you mean just removing it before submitting the page is a soft delete...yes , soft delete.

sanjarhakimi's avatar

I'm using the jQuery approach, it seems to refresh my View page, thereby deleting content from Form fields.

tomopongrac's avatar

if page is refreshed than jQuery is not working ... can you post your code (view and jQuery)...

Please or to participate in this conversation.