GetElement().Value render tag does not work for standard field types other than text

36 views
Skip to first unread message

Joshua

unread,
Apr 6, 2009, 10:19:32 AM4/6/09
to RedDot CMS Users
It appears GetElement().Value / GetElement().GetHtml() fail to return
values for standard fields if the type is not Text. At least that is
the case w/ v9.0.0.31. Haven't tested all the options, but have
verified the email, numeric, and URL types don't return anything.
OpenText support is investigating. Has anyone else run into this and/
or have a workaround?

Stefan Buchali

unread,
Apr 6, 2009, 10:39:51 AM4/6/09
to RedDot CMS Users
Yes I have had the same problem in version 7.5.1.86. Due to RedDot
Support, only text type standard fields work properly.
It does not matter whether you use .GetHtml() or .Value.
The only workaround is to change the type of the standard field to
"text" (no good solution, I know...)

Frederic Hemberger

unread,
Apr 6, 2009, 12:13:59 PM4/6/09
to RedDot CMS Users
Yupp, this problem is a known issue. But I don't know if a Defect ID
already exists, at the moment there is no other workaround than the
one already pointed out by Stefan.

Christopher Sheldon

unread,
Apr 8, 2009, 11:59:04 AM4/8/09
to RedDot CMS Users
I actually pull values from the user defined type of field that allows
you to input your own regular expressions for validation. I haven't
had any issues pulling from this field and have used it heavily in a
9.0.0.27 build. Seems like a simple solution would be to simply
create your own user defined field and put whatever regexp you want in
there and then go to town with your render tags. You should even be
able to change existing fields of the different types to user defined
without much issue and have it all start working. So really you can
have a standard field of any pattern in your pages without issue. Hope
that helps.

Joshua Ellis (Penn State Outreach Marketing)

unread,
Apr 8, 2009, 2:20:39 PM4/8/09
to RedDot CMS Users
On Apr 8, 11:59 am, Christopher Sheldon
<christopherdshel...@gmail.com> wrote:
> I actually pull values from the user defined type of field that allows
> you to input your own regular expressions for validation.

Thanks for the tip -- that works great. The help file lists the regex
patterns used by RedDot CMS for e-mail and URLs, both of which work
fine as custom filters.

-joshua
Reply all
Reply to author
Forward
0 new messages