Buy Now
Sign in

How to save dynamic dropdown value with my Form link with a Connectivity V5 list

veronique , October 29 2017
V
veronique
Hi,

I had a ChronoForm V5 connected to à ChronoConnectivity V5 list. Fields name was based on this rule : connectionname[field]. But now I've add 2 dropdown fields whose one select data from table depending of selection of the other. Form play good but I can't save data like before because I can't respect name field syntaxe (connectionname[field]) in this case. How to save again like before ?

Véro
GreyHead
Hi Véro,

Why can't you respect the field syntax? I think that should still work OK.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
V
veronique
To build dynamically the dropdown filed what depending of an other (what file name is " meuniers2[departement] "), I wrote this condition on DB Read frome Setup part :

<?php return array( 'DEP' => $form->data['meuniers2[departement]'] ); ?> 


This don't play.

If I rename this other dropdown simply with " departement ", condition become

<?php return array( 'DEP' => $form->data['departement'] ); ?> 


and dynamic dropdown fileds play good.

That what I think I can't respect the field syntax to save data form with Chronoconnectivity method.

Could you help me please.
GreyHead
Hi Véro,

Please try $form->data['meuniers2']['departement'] - that is the correct PHP syntax

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much