AnsweredAssumed Answered

De-selecting an xform radio button or select list

Question asked by tvaughan77 on Jun 1, 2009
Latest reply on Jul 3, 2009 by zaizi

Anyone know how to compel a web template xform to allow a user to de-select a previously selected optional radio button or select list?

Here's the scenario, if you're curious:

We're using Alfresco as something of a glorified XML document manager– our business people fill out xform templates with data that we deploy to an application server where our Java app consumes the XML and Does Stuff.

Some of the information they fill in in the Alfresco xform corresponds to an Enum object in our Java code base. . .so I would like for them to be able to select "Null" or map "–Select–" to an xsi:null="true" value without actually adding an enum named "–SELECT–" to our Java enum object.

Any ideas?  I know I can do this at the code-level, but that's muddy.  I'd rather do it at the data-save location, but I'm a little stuck as to how.

Thanks in advance.