ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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

veronique 29 Oct, 2017
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 30 Oct, 2017
Hi Véro,

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

Bob
veronique 18 Nov, 2017
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 20 Nov, 2017
Hi Véro,

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

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

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com