FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Submission Accounts: User can't delete upload file
#1
Hi Ben!
There was an old thread on this, but it might be a good idea to put it up again. I'm having problem letting the user delete files after submission and logging in to their accountusing version 1.2.8 of Submission Accounts.

I've created a form which is set to Private (one client has access...does this influence it?)
I've created a view which is set to Public (just in case)
In this view, which is associated with the form in Submission Accounts, all the fields are set to "editable". The view itself is also set to "Editable", but the user can't delete files. All other information is editable, but when the user click on the "Delete file" button nothing happens (not even a message). If I log in as the administrator and delete the file (no problem there), the user is able to upload a NEW file without problem, but can't delete it afterwards.

I've tried it on Safari and Firefox.

Any idea on this?
Reply
#2
Hi Peter,

Cool, thanks for the bug report. I'll check this out tomorrow and get back to you. It sounds like maybe a JS error.

Two little things you could test in the meantime: have you ran the System Check module? Run the Hook Verification test in particular. Secondly, are you running the latest version of the File Upload module (1.0.9)?

Quote:I've created a form which is set to Private (one client has access...does this influence it?)

That sounds fine. As long as a person can see the field + it's marked as editable, they should be able to delete the file. Sounds like a bug!

- Ben
Reply
#3
Hi Ben.
Thanks for the reply.
I updated to version 1.0.9 of the file upload module (had one version back).
I then did the system check (actually didn't have it installed...bummer) and ran across the following problems:
Code:
Extended Client Fields: ERROR, too many hooks

Submission Pre-Parser: ERROR, too many hooks

Swift Mailer: ERROR, too many hooks
The hooks was repaired successfully.
But I still can't delete a file logged in as a user.
Have a good weekend Ben! Don't work your self to death :-)


(Mar 2nd, 2012, 12:27 AM)Ben Wrote: Two little things you could test in the meantime: have you ran the System Check module? Run the Hook Verification test in particular. Secondly, are you running the latest version of the File Upload module (1.0.9)?

Reply
#4
Strange! I tested it out today and everything seems to work properly on my end. What version of the Core are you running, btw?

Haha, thanks. I'm actually heading back home to Vancouver tomorrow. Over 28 hours of traveling... ah fun. ;-)

- Ben
Reply
#5
Ah...stupid me. I suddenly realised that i'm using an old custom template and you've propably changed some JS since then. I tried to switch to the default template and, behold, there was light...or at least a deletion of files.... Now the dialogue box appeared.
Sorry to take up your time...

All the best, and thanks again.
Reply
#6
Scheisse... problem NOT solved.
It all works fine when I log in as a user after submission, BUT I can't delete a chosen file during the submission process using Form Builder. When I reach the Review page and click EDIT the same thing happens. Can't delete the file here.
Weird...
The only changes I've done here is to duplicate your theme "Pro Simple", edit the CSS a bit (changed colors) and added some text on the Form Page template, i.e. used the "if $current_page" syntax. Like so:
Code:
{{if $current_page == 1}}
Börja med att fylla i informationen om dig själv. Välj ett lösenord också (då kan du ändra din anmälan i efterhand och t ex lägga till ett paper).
{{/if}}
{{if $current_page == 2}}
Gör dina val i samband med årsmötet. Dels vilken arbetsgrupp du vill vara med i samt middagen på kvällen.
{{/if}}
{{if $current_page == 3}}
Kommer du att delta med ett paper på årsmötet? Isåfall fyller du i den här sidan också, men du kan även välja att göra det vid ett senare tillfälle genom att logga in på din anmälan (mer information kommer i bekräftelsebrevet). Om du inte deltar med paper hoppar du över detta steg.
{{/if}}
{{if $current_page == 4}}
Slutligen, kika igenom dina uppgifter. Om du vill ändra något klickar du på "Ändra" i högra kanten. Genom att klicka på fortsätt längst ner så skickas din anmälan in.
{{/if}}
Any ideas?
Reply
#7
Hi Peter,

Sorry for the wait on this. This is a bug. I'll try to get the bottom of it and get a fix out today.

- Ben
Reply
#8
Hi Peter,

Here's how to fix it:

1. Upgrade to the latest File Upload module (1.1.0):
http://modules.formtools.org/field_type_...wnload.php

2. In your custom template set, edit your "Form Page" template type. There, inside the <form> ... </form> tags, add this hidden field:
Code:
<input type="hidden" id="form_tools_published_form_id" value="{{$published_form_id}}" />

That provides some info to any javascript in the page. It's needed by the updated File Upload field type module to locate the appropriate file to remove.

That should be it!

I'm going to update the Form Builder module now so that all Template Sets include that new hidden field.

Again, sorry for the long response time!

- Ben
Reply
#9
Thanks Ben! It works now. *happy monday*
Reply
#10
Excellent! Thanks for letting me know about this.

- Ben
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)