Field default value don't work?

jack19 22 Nov, 2012
:roll:
Hi,
strange behavior using DB loader.
If an edit form I type a default value for a text field or hidden (I do not know if otherwise), this value is not considered and is taken the value of the DB.
Why?

Config.: Joomla 1.5.26 / CF V4 RC3.5.1
Update: I'm using Pane and Panel (for sicilian: non sono pane e panelle)
GreyHead 22 Nov, 2012
Hi Jack19,

If you have a default value and you load a value from the DB Record I guess that the ChronoForms republisher assumes that the DB Record is the correct value.

If you set the default values in the $form->data array using a Custom Code action after the Db Record Loader that should work.
<?php
$form->data['input_name'] = 'default_value';
?>


Bob
jack19 23 Nov, 2012
Great Bob ("TestaGrigia" why? 🤣 )
It's work.
This topic is locked and no more replies can be posted.