Is there any way to get label of the selected option in Presentation Template?
what about putting your labels into the values?|item name="ind_content_type"||label|Content Type|select required="t"||option label='Calendar Event1' selected="t" value='Calendar Event1zzzzCONTENT_TYPE_EVENT_CALENDAR_ONE' /||option label='Calendar Event2' value='Calendar Event2zzzzCONTENT_TYPE_EVENT_CALENDAR_TWO' /||/select||/item|and then just separate them in your tpl using a regex /(.*)zzzz(.*)/ where $1 will be the label and $2 the value
Thanks.This can be done if all the values contain some text like "zzzz".Where as it wont work for the cases like|item name="ind_content_type"||label|Content Type|select required="t"||option label='Calendar Event1' selected="t" value='ABC'/||option label='Calendar Event2' value='DEF'/||/select||/item|