Hi Richard, Thanks for getting back to me!
Unfortunately the code you suggested in a render tag didn't seem to return anything for me. Can I ask, is there some documentation describing the tags? I've just been checking Markus Giesen's Unofficial RedDot CMS blog : http://www.reddotcmsblog.com/reddot-cms-render-tags-the-ultimate-list And trying to make a bit of a leap from a RedDot RQL guide we have, but I'd really rather not use RQL for this. The exact code I used to test was: <p> <%!! Context:CurrentPage.Elements.GetElement(opt_thankyou_and_error).OptionList[Context:CurrentPage.Elements.GetElement(opt_thankyou_and_error).Value] !!%> </p> Cheers, Chris. On 19 December 2011 12:06, Richard Hauer <richard.ha...@gmail.com> wrote: > Try this: > > > Context:CurrentPage.Elements.GetElement(opt_test).OptionList[Context:Current > Page.Elements.GetElement(opt_test).Value] > > The OptionList Property is of type StringDictionary, and is a member of the > PageElementOptionList which is what is being returned by the GetElement() > method (in the case of an Option List anyways). > > You might need to jiggle the notation if your default language is VB and > not > C#, but essentially you're trying to pass the value as an indexer parameter > to the Element itself. > > Regards, > Richard Hauer > Solution Architect > Level 4, 263 Clarence Street, Sydney NSW 2000 > p +61 2 9321 1555 | d +61 2 9321 1556 | m +61 414 189 170 > > -----Original Message----- > From: reddot-cms-users@googlegroups.com > [mailto:reddot-cms-users@googlegroups.com] On Behalf Of ChrisJ > Sent: Monday, 19 December 2011 10:42 PM > To: RedDot CMS Users > Subject: Getting the name of currently selected item in option list > > Hi folks, > > Does anyone here know how to output the name, not the value, of the > currently selected item from an option list in a template? To get the > value > is trivial, either just reference the element: > > <%opt_test%> > > or use a render tag: > > <%!! Context:CurrentPage.Elements.GetElement(opt_test).Value !!%> > > I've tried educated guessing (looking at the RQL) by using: > > <%!! Context:CurrentPage.Elements.GetElement(opt_test).Value.Name !! > %> > > or > > <%!! > Context:CurrentPage.Elements.GetElement(opt_test).Value.Description !! > %> > > But get nothing... > > Any ideas? > > Cheers, > Chris. > > -- > You received this message because you are subscribed to the Google Groups > "RedDot CMS Users" group. > To post to this group, send email to reddot-cms-users@googlegroups.com. > To unsubscribe from this group, send email to > reddot-cms-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/reddot-cms-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "RedDot CMS Users" group. > To post to this group, send email to reddot-cms-users@googlegroups.com. > To unsubscribe from this group, send email to > reddot-cms-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/reddot-cms-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to reddot-cms-users@googlegroups.com. To unsubscribe from this group, send email to reddot-cms-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.