Forums

remove file

mic0672 05 May, 2014
Hi,
I have enabled the plugin cancellation in chronoconnectivity5, so I can delete a record from the list. I should also remove the file from the server connected to it. How can I do?
thank you very much

mike
Max_admin 06 May, 2014
Hi Mike,

I'm not sure I can understand this, please post screenshots or more details!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
mic0672 06 May, 2014
thanks for your reply and sorry if I was too short.
I created a connection that displays records from a table, populated by a form. they contain data of users (id, name, etc.) and the address of a file that users upload to the server.
Now, in the list I inserted a link to delete the record (of course each user can see and delete only their own records), using _CANCEL_.

Where do I put the php code to remove the file to the server?
I hope to be more expensive.
Thank you Max
Max_admin 06 May, 2014
Hi Mike,

Here is what you can try, although I didn't test it myself yet:

#1- add a new action under the actions tab and call it "alt_delete".
#2- point the new action to a new event in your form (create one) and name it "alt_delete". (please check the tutorial on this step) then save the connection.
#3- setup the permissions for this new action.
#4- in the new form event, drag a "Connection action" and configure it, enter the connection's name, then write "delete" in the action name.

Test! does it delete the record ? let me know!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.