cancel
Showing results for 
Search instead for 
Did you mean: 

nesting radio button groups in xforms

fbousson
Champ in-the-making
Champ in-the-making
My problem is as follows: I would like to present my users with an XForm that shows a radio button group inside another radio button group.
It would basically look like this:

-item_1
    -item_1_inner_1
    -item_1_inner_2
-item_2
    -item_2_inner_1
    -item_2_inner_2
    -item_2_inner_3


I want my users to select either item_1 or item_2 and then make a selection of one of the inner items.

Anyone know how I accomplish this?
3 REPLIES 3

stephenr85
Champ in-the-making
Champ in-the-making
I have a very similar question.

I would like to have an option for the user to select a type of content (e.g. Html Content, Content Include, User Poll, etc), and then be presented with a set of fields specific to their selection. This way, they could order the pieces of content however they'd like, and not be stuck entering them in a rigid sequence.

The Wiki  Forms Authoring Guide says to use an xf:switch in place of an xs:choice. It mentions in the Supported XML Schema Data Types that xs:complexContent creates an xf:switch, but doesn't give anymore detail…so I'm stuck.

fbousson
Champ in-the-making
Champ in-the-making
I've been experimenting all day with both xs:choice and xs:complexContent

Haven't been able to get anything decent out of either…

stephenr85
Champ in-the-making
Champ in-the-making
Same for me 😕  I've been told by support that it has not been implemented, but they're looking into it further.
http://issues.alfresco.com/browse/WCM-251

For now, I'm just going to create a complex type with all of the insertable contents. This will expose each content type every time they add a block of content, so it's not nearly as elegant, but I supposed it'll have to do…

Let me know if you're able to get something to work for you, and I'll do the same.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.