Posts: 46
Threads: 16
Joined: Feb 2014
Reputation:
0
Mar 13th, 2014, 10:42 AM
(This post was last modified: Mar 14th, 2014, 1:44 PM by grahame.)
Hi
Can I get a pointer on this please?
When doing an Add submission, I want to prompt the user with the usual are you sure?
I can see where a hook is needed, ft_create_balnk_submission, but still a bit baffled?
I thought I would replicate/amend delete_form.php process but I cannot find the source for delete_form.tpl to save my life? Where are the .tpls please?
Posts: 46
Threads: 16
Joined: Feb 2014
Reputation:
0
Mar 14th, 2014, 12:47 PM
(This post was last modified: Mar 14th, 2014, 1:46 PM by grahame.)
Ah.. OK have found the .tpl file…
/public_html/formtools/themes/default/admin/forms
But, actually I realised that there is an even better example of a confirmation …. when deleting a submission… so I am desperately trying to figure out how Formtools all fits together.
Can I ask where the source code is for the ft_create_blank_submission is please?
And now I have found them too…
/public_html/formtools/global/code
P.S. I'm adding them in these threads so I can look them up later if I need my memory jogging!
Nope… I just cannot see how you push out a confirmation message (and trap the response) when deleting a submission?
Need some help on this please…. thanks
Posts: 46
Threads: 16
Joined: Feb 2014
Reputation:
0
Hi
Just to finish this thread off.
For the sake of consistency (in user experience) I was hoping to use the same 'pop-up' as used in the delete submission confirmation. Sadly this turned out to be far too complex for me! Instead, I have built a confirmation using the 'old-fashioned' way by inserting a new 'confirmation' page a la delete-form.
Works OK but not as elegant as I would have liked. If you build one of these, watch out because the new submission process for Admin and Client users are slightly different. The former uses submissions.php whereas the latter uses index.php.