Hi-
I just upgraded to the new version 2.0.5 and was very, very happy that now people can add multiple values to a field using checkboxes and have them show up properly on the validate.
Now, I'm just stuck with the modify process such that the when a user goes to modify their link that the multiple values that are selected are displayed as checked in the check boxes on the modify form.
I tried the following for a field called State which can have multiple values (50 state names):
<input type="checkbox" name="Multiple" value="Arizona" <%if State='Arizona'%>checked<%endif%>>Arizona
<input type="checkbox" name="State" value="Alaska"<%if State='Alaska'%>checked<%endif%>>Alaska
<input type="checkbox" name="State" value="California"<%if State='California'%>checked<%endif%>>California
But this will return all of the boxes checked even if only one or two of them were actually selected.
Does anyone know if there is a way to have a conditional that will determine whether that value is already checked so that it will display as checked on the modify form?
Any help would be greatly appreciated...
-jw
I just upgraded to the new version 2.0.5 and was very, very happy that now people can add multiple values to a field using checkboxes and have them show up properly on the validate.
Now, I'm just stuck with the modify process such that the when a user goes to modify their link that the multiple values that are selected are displayed as checked in the check boxes on the modify form.
I tried the following for a field called State which can have multiple values (50 state names):
<input type="checkbox" name="Multiple" value="Arizona" <%if State='Arizona'%>checked<%endif%>>Arizona
<input type="checkbox" name="State" value="Alaska"<%if State='Alaska'%>checked<%endif%>>Alaska
<input type="checkbox" name="State" value="California"<%if State='California'%>checked<%endif%>>California
But this will return all of the boxes checked even if only one or two of them were actually selected.
Does anyone know if there is a way to have a conditional that will determine whether that value is already checked so that it will display as checked on the modify form?
Any help would be greatly appreciated...
-jw