Hi,
We get users to book their attendance at company training sessions using the Custom Form asset. Users will enter Name, Date & Time of Course etc. Occassionally a user will enter the incorrect information, or want to cancel their attendance. How can I get them to delete and/or edit their own Form Submission without accessing the Admin interface (which we obviously don't want them to do)? At the moment, I cannont find a way for users to delete or edit their own Form Submission, which is resulting in incorrect data being passed on to our training coordinators etc, who download the spreadsheet with all the submissions.
I do, of course, have the ability to create an Asset Listing page that lists all Form Submissions. I can then also use Javascript to make this Asset Listing page only list Form Submissions submitted by that user. But where to from there? One of the problems is the Form Submissions do not have a webpath. What I have done in the past is sent them to www.sitename.com/?a=assetID where assetID is the ID of the Form Submission.
I have then set a Trigger that says, when Form Submission is accessed, link Form Submission to Trash. This was working until recently, when we upgraded our Matrix system to v3.22.4. Also, www.sitename.com/?a=assetID is displaying as a blank page, which doesn't help the user either.
Surely there is an easier way??
[quote]
Hi,
We get users to book their attendance at company training sessions using the Custom Form asset. Users will enter Name, Date & Time of Course etc. Occassionally a user will enter the incorrect information, or want to cancel their attendance. How can I get them to delete and/or edit their own Form Submission without accessing the Admin interface (which we obviously don't want them to do)? At the moment, I cannont find a way for users to delete or edit their own Form Submission, which is resulting in incorrect data being passed on to our training coordinators etc, who download the spreadsheet with all the submissions.
I do, of course, have the ability to create an Asset Listing page that lists all Form Submissions. I can then also use Javascript to make this Asset Listing page only list Form Submissions submitted by that user. But where to from there? One of the problems is the Form Submissions do not have a webpath. What I have done in the past is sent them to www.sitename.com/?a=assetID where assetID is the ID of the Form Submission.
I have then set a Trigger that says, when Form Submission is accessed, link Form Submission to Trash. This was working until recently, when we upgraded our Matrix system to v3.22.4. Also, www.sitename.com/?a=assetID is displaying as a blank page, which doesn't help the user either.
Surely there is an easier way??
[/quote]
I think it might be easier to use another asset type - maybe create a calendar event using an asset builder not a form. That way it gets a URL.
Don't listen to Justin, the easy way is no fun 
It is possible - to trigger an event on a form submission I use a link manager asset - then under dynamic parameters - "Replacement Managed Asset for the listing" set it to take a get variable, then I use some jQuery on my asset listing page to send a get request to my link manager when a user clicks a button:
$.ajax({
type: "GET",
url: "%globals_asset_url:XXXX%",
data: "del_assetid="+assetId+"&page_link_manager_XXXX_Linked[YYYY]=1&selection_flag_page_link_manager_XXXX_Linked=1&page_link_manager_XXXX_submit_button=Submit",
success: function(){do whatever...}
});
XXXX being the link manager assetId, YYYY being the asset you want to link your submission under, and assetId is the assetId of your submission.
then I have a trigger that listens for link creation events under assetYYYY that does the rest.
Hope this helps :)
you need to remember, most people asking for help aren't web developers like us :P!!!
[quote]
you need to remember, most people asking for help aren't web developers like us :P!!!
[/quote]
wtf
I have done a few implementations using forms similar to this, apart from the deleting the submission. Everything that I wanted users to be able to come back and edit had to go into metadata as the form fields can only be accessed by the admin interface for editing, i even tried the details screen in limbo without success. Bugger if the url craps out after an upgrade as my clients will be upgrading soon and the implementations will need to be revisited, luck it is well documented.