Hey all,
I have a custom state for products which the user should set with options from a dropdown. The field and values are set in DW.
The Frontend code for dropdown:
<select>
<option>Select a Value</option>
<!--@LoopStart(ProductState.Options)-->
<option value='<!--@ProductState.Option.Value-->' id='ProductState_<!--@ProductState.Option.Value-->'<!--@If Defined(ProductState.Option.IsSelected)--> selected<!--@EndIf(ProductState.Option.IsSelected)--> >
<!--@ProductState.Option.Name-->
</option>
<!--@ProductState.Option.IsSelected-->
<!--@LoopEnd(ProductState.Options)-->
</select>
This returns an null when saving the product in the following Base.Request:
Base.Request("ProductState")
But with a radio button list the Base.Request returns a value:
<label class="sales-state" for="ProductState">
<!--@LoopStart(ProductState.Options)-->
<input class="for product-state" type="radio" name="ProductState" value="<!--@ProductState.Option.Value-->" id="ProductState_<!--@ProductState.Option.Value-->"<!--@If Defined(ProductState.Option.IsSelected)--> checked<!--@EndIf(ProductState.Option.IsSelected)-->/><label for="ProductState_<!--@ProductState.Option.Value-->"><!--@ProductState.Option.Name--></label><br />
<!--@LoopEnd(ProductState.Options)-->
</label>
Anyone got any ideas or input where i'm going wrong with the dropdownlist?