Buy Now
Sign in

New form, automatic saves new row

westlandsehalve , January 07 2020, 14:57
W
westlandsehalve 6
January 07 2020, 14:57 #390578
Hello,
I've created a new form, to insert simpel record into a database table.
It work fine, but when I open the form it always creates a new record into the database.
How can I prevent this from happening?
GreyHead 64
January 08 2020, 12:28 #390587
Hi westlandsehalve,
I'm not clear exactly what is happening here :-(
The Save Data action should be in the form Submit event.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
W
westlandsehalve 6
January 08 2020, 19:32 #390597
Hey Bob,
Thanks for helping thinking about this.
That's a thing.
I created the view and then defined the action (acties): save_data. I guess did something wrong .
It seems he just raises the event save_Data
I expect that when he submits the form the screen validations ( mandatory fields ) should be raised, that's not the case.
Aantekening_2020-01-08_203007.png
Attachments
Aantekening_2020-01-08_203007.png
Aantekening_2020-01-08_203007.png
(55.49 KiB)
82 Downloads/Views
W
westlandsehalve 6
January 08 2020, 19:48 #390599
I just added , debugging before the save-data action, and this is waht it brings up..
so to me it shows, he raises the save_Deelnemer action
Array
(
[option] => com_chronoforms6
[cont] => manager
[chronoform] => Inschrijving_Jeugdloop
[09bcf549421525551e4852fcdb1d2ed9] => 863f51f39b7fa0d4431a13d82105ac73
[d11158c465f79c2b5104723e999089ce] => a1a0622eaa7bf9c369f2b33125fed951
)
Array
(
)
Array
(
[option] => com_chronoforms6
[cont] => manager
[chronoform] => Inschrijving_Jeugdloop
[09bcf549421525551e4852fcdb1d2ed9] => 863f51f39b7fa0d4431a13d82105ac73
[d11158c465f79c2b5104723e999089ce] => a1a0622eaa7bf9c369f2b33125fed951
)
Array
(
[save_deelnemer] => Array
(
[data] => Array
(
[created] => 2020-01-08 19:47:11
[user_id] => 768
healyhatman 8
January 08 2020, 22:20 #390602
You must have the save data action in the load event, instead of the submit event where it's supposed to be
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
W
westlandsehalve 6
January 13 2020, 22:22 #390706
Thanks,
But i can not figure out where the events are defined.
healyhatman 8
January 13 2020, 22:58 #390707
In the Setup tab (old mode) or the Actions tab (new mode)
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
W
westlandsehalve 6
January 29 2020, 18:16 #390962
Sorry, but I do not understand were on the action page I can configure in which event the action is defined.
healyhatman 8
January 29 2020, 19:28 #390963
Really!?! Care to share a screenshot?
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
W
westlandsehalve 6
January 29 2020, 22:14 #390964
No problem,
It's Dutch, hope thats oke?
Knipsel.PNG
Attachments
Knipsel.PNG
Knipsel.PNG
(71.5 KiB)
21 Downloads/Views
Knipsel.PNG
Knipsel.PNG
(71.5 KiB)
26 Downloads/Views
healyhatman 8
January 30 2020, 00:44 #390965
So that giant tab saying iNSCHRJEJjEGUG or whatever? That's your event. You can make a new one at the bottom, where it says "+Page"
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store