Forums / Developer / How can I use ezenum in forms?

How can I use ezenum in forms?

Author Message

Hans Melis

Tuesday 24 June 2003 6:26:10 am

Hi,

I'm working on a customised importscript for 2.x forms to 3.x content classes. All fields available in 2.x forms can be mapped nicely to 3.x datatypes, at least that's what I thought.

The ezenum datatype can be used to make a dropdown list, a multiselect list, a checkbox group or a radiobutton group. So I mapped all those types to ezenum, set the attributes to the correct values and imported the elements + their values. Creating an object of the class (which is actually making the form) went fine, but when I opened the form to test it I noticed that the ezenum fields aren't displayed. Their names are, but the optionlist doesn't appear (probably because of an absent 'Information Collector' checkbox when creating the class).

This is using 3.1-beta2 along with the importscripts posted in the contributions + some custom importscripts.

Is there any way that I can use the ezenum datatype as an information collector?

Thanks

--
Hans

Hans
http://blog.hansmelis.be