Forums

Delete Record Currently Being Viewed

crea2k 12 Dec, 2011
Hi, I have managed to get my forms working properly now, someone can now fill in the form and it is displayed on the view form page with all the others, and the edit and delete buttons work on the view page.

When a record is clicked on it is loaded into the editor form with the token in the url like this :
http://127.0.0.1:4001/chandlers/index.php?option=com_chronoforms&chronoform=addupdatelead&token=92d8e01e74d6683bbdf50bbac895d557

What I am trying to do now is add a delete button to the edit form, so it deletes the currently loaded record, but the same code I used on the view page doesnt work.

On the view page I have used this to delete the record
<a href="index.php?option=com_chronoforms&chronoform=deletelead&token={$value}">Delete</a>
this points to a form that deletes the record with that uid.
GreyHead 13 Dec, 2011
Hi crea2k,

Hard to say with the info here but provided that both links call the same URL then they should both delete the entry.

Bob
This topic is locked and no more replies can be posted.