Hello.
I use Chronoforms to edit a row from ChronoConnectivity.
All works perfectly fine, except for a detail.
When i use a "dropdown list" with a list of values, Chronoforms find correctly the value stored in the row an add
Example :
When i use a "dropdown list" with a dynamically build list, Chronoforms does not find the selected value. And I do not find the name of the variable to check ...
Example :
Does anybody have a solution , please ?
I use Chronoforms to edit a row from ChronoConnectivity.
All works perfectly fine, except for a detail.
When i use a "dropdown list" with a list of values, Chronoforms find correctly the value stored in the row an add
selected='selected'
to tag <option>.Example :
<select name="pays" id="pays" >
<option selected="selected" value="FRANCE">FRANCE</option>
<option value="BELGIQUE">BELGIQUE</option>
<option value="LUXEMBOURG">LUXEMBOURG</option>
</select>
When i use a "dropdown list" with a dynamically build list, Chronoforms does not find the selected value. And I do not find the name of the variable to check ...
Example :
<select name="pays" id="pays">
<?php
foreach ( $pays as $p => $n ) {
$s = '';
if ( ????? == $p ) {
$s = "selected='selected'";
}
echo "<option value='$p' $s >$n</option>";
}
</select>
Does anybody have a solution , please ?