Hello, I have 4 dynamic dropdown linked together (the same as the common province region), it works well, the problem is: to save in the database saves the id for the value and not the correct value.
the tables are in connection with the id.
how do I fix?
I tried this solution but it does not work (I copy the value from the dropdown in a text field, but also saves the id and not the value. The code is tested this:
the tables are in connection with the id.
how do I fix?
I tried this solution but it does not work (I copy the value from the dropdown in a text field, but also saves the id and not the value. The code is tested this:
1) Create a hidden field in your form for campoDaSalvare
2) add a "Custom Code" action to the "On Submit" event before your "DB Save Action"
In the Custom Code action insert PHP code to set the campoDaSalvare field to the appropriate value depending on the selected drop down value.
In ChronoForms v4 or v5, this will be something similar to this:
<?php $form->data['campoDaSalvare'] = $form->data['campoDynamicDropqown']; ?>