Remove button doesnt remove record of mulitiplier table

admin_wiky 22 Aug, 2018
Hello,

I have a problem with my form, wher I am using multiplier and remove button.
Multiplier saves to second table - works, updates of existing records - work, but when I click on remove button and then save - nothing happened - records is still there.

any Idea why?
thanks a lot.
Josef
healyhatman 22 Aug, 2018
Remove button has to be within the body, not the footer.
admin_wiky 22 Aug, 2018
remove button is in body, not in footer
healyhatman 22 Aug, 2018
So... what exactly is the problem? What are you trying to achieve?
admin_wiky 22 Aug, 2018
I have the form .... where basic fields are saved to basic table and multiplier field are saved to different table.
when I use remove button, element with 1 entity of multiplier fields disappered, but record is still in db table
so remove button dont remove record.
healyhatman 22 Aug, 2018
Well no of course not. Have you TOLD it to delete the record from the database?
admin_wiky 22 Aug, 2018
when I reopen record, deleted record is still there.
admin_wiky 22 Aug, 2018
no, I thougt that it will do automatically😀
healyhatman 22 Aug, 2018
No, it won't.
​
You will need to craft some logic and use a delete action to delete records from your database.
admin_wiky 22 Aug, 2018
uf .. some example isnt anywhere?🙂
healyhatman 22 Aug, 2018
An example covering just your specific implementation? No. 😀
​
There's an example in Chronoconnectivity for showing a table with the ability to delete records. But basically you'll have to either build the implementation yourself or pay someone like me to do it for you.
admin_wiky 22 Aug, 2018
could you pls send me a link to example? I am using CCv5, CFv5
Thx
healyhatman 22 Aug, 2018
There's an example in CCv6, can't help you with v5
admin_wiky 22 Aug, 2018
I cant find out FAQ about multiplier CFv6.
pls send me a link.
healyhatman 22 Aug, 2018
http://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5290-how-to-use-the-repeater-area
healyhatman 22 Aug, 2018
So either you need to look at the CCv6 "Custom articles listing" demo connection.
​
Or
​
You need to do a check in your submission event for which entries are "missing", and delete those entries from the database.
This topic is locked and no more replies can be posted.