Checkboxes doesn't work well

webcrea 13 Sep, 2018
Hi,

When you add bracket
  • to name and try to save_data :
  • [h1]1054 Unknown column 'Array' in 'field list'[/h1]

    Without bracket, only one value saved !!

    Thanks
    webcrea 14 Sep, 2018
    Hi,

    You can create an account and go to https://www.arobasfinance.fr/conseil-en-gestion-de-patrimoine/vos-projets/mieux-vous-connaitre

    Debug is active

    "Profil boursier" is with brackets

    Regards
    healyhatman 14 Sep, 2018
    Or you could just post a debug
    webcrea 14 Sep, 2018
    there is some personnal information ... See it you'll understand
    healyhatman 14 Sep, 2018
    You could cover it up in paint but okay I'll have a look later
    healyhatman 14 Sep, 2018
    OK so I highly doubt it's the checkboxes that aren't working, but your save data action that's wrong. I also can't see the debug because you have the malformed save data action activated which is throwing an error.
    healyhatman 14 Sep, 2018
    Post a screenshot of your save data action please. And what your "faulty" checkboxes are called.
    webcrea 14 Sep, 2018
    the last checkboxes with two brackets
    "Quels instruments entrent dans la composition de votre portefeuille de valeurs mobilières :"
    healyhatman 14 Sep, 2018
    Try putting the fields in manually in your save data action instead of relying on auto add.
    webcrea 14 Sep, 2018
    I don't know do that
    healyhatman 14 Sep, 2018
    In data override.

    database_field:{data:field}
    webcrea 14 Sep, 2018
    composition_portefeuille:{data:composition_portefeuille (without brackets)} -->
  • 1054 Unknown column 'Array' in 'field list'

  • composition_portefeuille:{data:composition_portefeuille (with brackets)
  • --> nothing saved in this data
    healyhatman 14 Sep, 2018
    Does the database table have that field in it?
    webcrea 14 Sep, 2018
    yes and nothing inside after save
    healyhatman 15 Sep, 2018
    OK so I had a look again and you STILL have the Auto Save Fields turned on - turn that off. Put the fields in manually.

    Additionally, Auto Detect often doesn't work so well for the write action - only seems to work in very specific circumstances. If the field is for updating only, set it to update. If you want to automatically detect if you should do an update or a save, use a read data action - if the row you want is founduse a save data action set to update. If the row is not found, use a save data set to insert.
    webcrea 15 Sep, 2018
    I tried it but always error or only the last checkbox saved...
    Max_admin 19 Sep, 2018
    Hello,

    In the "Data override" of the Save or update you can do the following:
    table_field_name:{data.jsonen:checkbox_name}
    That would json encode the data before its saved

    Best regards
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    webcrea 19 Sep, 2018
    Hi Max,

    Thanks healyaltman gave me the info...

    Where we can know that, please?

    regards
    Max_admin 19 Sep, 2018
    Answer
    1 Likes
    Hi Chris,

    In the "Shortcodes" page in the FAQs section and in the manual, the shortcodes are important for any form data changes, otherwise you can just use PHP to change the data which was the only way in earlier versions.

    Best regards
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    healyhatman 23 Oct, 2018
    In the shortcodes FAQ and the manual it talks about json encode / decode, and you just kind of have to know you can't store an array directly in your database and that you have to JSON encode it first
    webcrea 24 Oct, 2018
    ok
    i understood
    This topic is locked and no more replies can be posted.