Buy Now
Sign in

Cannot save data in multi page form with sections (not partition areas)

burf , February 13 at 14:49
B
burf 112
February 13 at 14:49 #383864
Hi,
I have a multi page form with five „sections“, not „partition areas“.

But the data isn’t saved, and I can’t figure out, how to save the data. When setting it up with „partition areas“, it works fine (but there are other problems, I cannot solve.).

Could there be something wrong with the „Model name“, „Data provider“ and „Identifier“?

Attached images show section "load", "two", and "submit".

Can anyone help? Thanks!

load.png
two.png
submit.png
healyhatman 6.1
February 14 at 00:20 #383873
Auto manage is always a terrible idea, build your table yourself.
Auto Save Fields isn't going to work in your case either, you need to put the values you want in yourself, in the form
databasefieldname:{data:formfieldname}
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

You can now copy+paste code from forums
B
burf 112
February 14 at 08:31 #383883
Thanks. But I cannot get it work. Only the last section's data is being saved. CF6 to me really is more complicated since it seems to need more programming knowledge :-(
… and the form workes fine with Auto Manage and Auto Save enabled using "partition areas" instead of "sections". Therefore: Would you have a solution for this topic?

https://www.chronoengine.com/forums/posts/t106639/scrolling-to-the-top-of-a-page-when-moving-from-tab-to-tab?keywords=
Then the whole changing to sections instead of partition areas would not be necessary.
healyhatman 6.1
February 14 at 09:16 #383889
You say you cannot get it to work. Please show me a screenshot with the changes I suggested.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

You can now copy+paste code from forums
healyhatman 6.1
February 14 at 09:17 #383890
Also the multi-page action should be first in each event unless you know what you're doing and have a reason not to put it first
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

You can now copy+paste code from forums
B
burf 112
February 14 at 10:34 #383891
Attached is the new screenshot. I only added some fields for a start.
Now it doesn't save anything: Column "dropdown_position" cannot be null. However, I did select the option "FK=Geschäftsbereich Führung/stellv. Führung"Bildschirmfoto_2019-02-14_um_11.31.40.png
Bildschirmfoto_2019-02-14_um_11.32.31.png
Attachments
Bildschirmfoto_2019-02-14_um_11.31.40.png
Bildschirmfoto_2019-02-14_um_11.31.40.png
(370.84 KiB)
63 Downloads/Views
Bildschirmfoto_2019-02-14_um_11.32.31.png
Bildschirmfoto_2019-02-14_um_11.32.31.png
(32.45 KiB)
52 Downloads/Views
Bildschirmfoto_2019-02-14_um_11.32.31.png
Bildschirmfoto_2019-02-14_um_11.32.31.png
(32.45 KiB)
62 Downloads/Views
healyhatman 6.1
February 14 at 10:51 #383892
 Answer
Unless this submit event is the first event, you will need to put your multipage action (set to "mix with global" or whatever the setting is called) BEFORE the save data action. Otherwise all of those {data:blahblah}'s will be empty. I would also recommend for each one you do it like this
dropdown_position:{data:dropdown_position/}
that / will say "if data:dropdown_position is empty, pass an empty value" as opposed to a NULL value.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

You can now copy+paste code from forums
B
burf 112
February 14 at 11:42 #383895
Thanks! Seems to work. I didn't even have a multipage action within the submit section …
Have a good day!
Carsten