Forums

delete link

?
Guest 17 Apr, 2013
hi all,

I am trying to add delete links to a list of entries but something is not quite right

when using the link the msg (sure u wanna delete)shows up but then a blank page is the result

could you pls have a look?

J!2.5.9; CF4.0 RC3.5.2
GreyHead 18 Apr, 2013
Hi gabrielaH,

I installed the backup but as I don't have the DB Table I don't see anything. Your code looks OK from a quick review; I guess it's just a question of debugging to see where the problem is.

Bob
?
Guest 18 Apr, 2013
hi Bob,

thanks for getting back to me on that matter

I double checked everything:
- the table name corresponds
- the form name corresponds
- the uri after using the sure wanna delete button is
index.php?option=com_chronoforms&chronoform=listClients&event=delete_client&cf_uid=xxx

thus the code in the onsubmit event is not being executed. only why?
GreyHead 18 Apr, 2013
Hi GabrielaH,

That's a good question but not one that I can answer. If you call the event URL then ChronoForms will load the event. You have to add some debugging code to see exactly what is happening. Just add <?php echo 'xxx'; ?> in your custom code action to see if that is displayed. If it is then you know that the event is being loaded; if not then the problem is before that.

Bob
?
Guest 18 Apr, 2013
ohhh!

found it... I added the custom code to the onsubmit event instead of creating a new event 😶
This topic is locked and no more replies can be posted.