diff --git a/wire/modules/Fieldtype/FieldtypeOptions/FieldtypeOptions.module b/wire/modules/Fieldtype/FieldtypeOptions/FieldtypeOptions.module index c3224197..37391b86 100644 --- a/wire/modules/Fieldtype/FieldtypeOptions/FieldtypeOptions.module +++ b/wire/modules/Fieldtype/FieldtypeOptions/FieldtypeOptions.module @@ -224,6 +224,12 @@ class FieldtypeOptions extends FieldtypeMulti implements Module { * */ public function ___markupValue(Page $page, Field $field, $value = null, $property = '') { + $inputfieldClass = $field->get('inputfieldClass'); + if($inputfieldClass && $value instanceof WireArray) { + // render single value rather than list of them when input only accepts 1 selection + $interfaces = wireClassImplements($inputfieldClass); + if(!in_array('InputfieldHasArrayValue', $interfaces)) $value = $value->first(); + } if(empty($property)) $property = 'title'; return parent::___markupValue($page, $field, $value, $property); }