Tabs inside Multiplier

maat 07 Mar, 2016
Hello,

First, I want to thank all the creaters, developers and other crew of ChronoForms. It is really amazing.

I have a problem when using tabs inside a multiplier. I have 2 tabs and there is no problem when using tabs on their own. But if I want to put them inside multiplier, 2nd tab of the copied element doesn't work. On the address line, I can see that container number changes, but the tab doesn't become active.

Another point, when I clicked on "multiply" button, it multiplies as its last phase. Let me explain. For example, I left the second tab active, and used multiplier. It makes the new copy as 2nd tab activated, and 1st tab disabled. If I left the first tab active before multiplying, it makes the copy with 1st tab active and 2nd tab disabled.

Is it because of some Javascript issue?

I would be appreciate for any help. Thank all you guys again.
GreyHead 08 Mar, 2016
Hi Maat,

I've never even thought of putting tabs into a multiplier. do you really need them? You are making a very complicated form.

Bob
maat 08 Mar, 2016
Hello GreyHead

I'm making a competition registration form. A sports club will be able to add 12 teams, each team has 7 players. There are about 20 fields for each player. I've build a tab container with 7 tabs for each player, 20 fields on each tab. And I put this tabs area inside multiplier. I've tried sliders too, but the situation is same.

I know it is complicated. I thought for days and days and found this structure🙂 Do you have any other structure suggestion for this form?

I'm working on multifield structure now. But tabs would look better.

Best regards.
maat 09 Mar, 2016
Hello Bob,

I've decided to work with multifields inside multiplier. But I've problems for multiplied multifield data save. Can you please help me?

This is my form skeleton.
Tabs inside Multiplier image 1

The leader at the top will be able to add 12 teams.

This is my form setup:
Tabs inside Multiplier image 2

I've created two tables with structures below:
First table for the data that will not be multiplied (maintable)
Tabs inside Multiplier image 3

And the second table for the arrays: (arraytable)
Tabs inside Multiplier image 4



I set first DB save to the first table, with these settings:
Tabs inside Multiplier image 5



And second database action like this:
Tabs inside Multiplier image 6

When I submitted the form, it saves non-multiplied data without problem. But nothing happens in the array table. Tried many many many combinations (different combinations of field structure in the table, like with "id" fiedl, without "id" field etc...) but no result.

Debugger says:
Data Array
Array
(
    [option] => com_chronoforms5
    [view] => form
    [Itemid] => 118
    [chronoform] => kulupkayitformu
    [event] => submit
    [temsilci] => leader
    [takim] => Array
        (
            [1] => Array
                (
                    [cins1] => 0
                    [adisoyadi1] => name1 surname1
                    [cins2] => 0
                    [adisoyadi2] => name2 surname2
                )

            [2] => Array
                (
                    [cins1] => 0
                    [adisoyadi1] => name3 surname3
                    [cins2] => 0
                    [adisoyadi2] => name4 surname4
                )

        )

    [button43] => Submit
    [id] => 13
    [Data] => Array
        (
            [id] => 0
        )

)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
    [9] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                            [0] => INSERT INTO `dwyvf_chronoengine_chronoforms_datatable_maintable` (`temsilci`, `user_id`, `uniq_id`, `created`) values ('leader', '436', 'e7763ee242231070da99904b691e8fc731f7b545', '2016-03-09 09:15:39');
                        )

                )

        )

    [10] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                        )

                )

        )

)


What am I missing ??? :?

And thank you for your time.

Best regards.
GreyHead 09 Mar, 2016
Hi Maat,

You need to re-create the second table without the prefixes so just
cins1, adisoyadi, cins2, adisoyadi2, . . .
Then set the second DB Save to Multi Save Yes and Model ID takim

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