cancel
Showing results for 
Search instead for 
Did you mean: 

WCM Web Form - show or hide fields dynamically

scottf
Champ on-the-rise
Champ on-the-rise
Hi,
I've tried searching the forums and wiki but can't find a specific answer or example, or even if this is possible.
What I would like to have in a wcm web form is a drop down menu with a number of options (this I know how to do).
When the user selects an option from this drop down menu, certain fields (i.e. xs:element) will be hidden and some will be shown.

For example:
dropdown menu choice = car
Fields shown = color and engine (frame material field is hidden)
dropdown menu choice = bike
Fields shown = color and frame material (engine field is hidden)

Is this possible? If so, are there any examples?
3 REPLIES 3

pmonks
Star Contributor
Star Contributor
This is basically what the <xs:choice> XML Schema construct allows, but unfortunately it isn't currently supported in WCM Web Forms.  I'd suggest voting and/or commenting on https://issues.alfresco.com/jira/browse/ENH-393 or https://issues.alfresco.com/jira/browse/ALFCOM-2599.

Cheers,
Peter

scottf
Champ on-the-rise
Champ on-the-rise
Thanks for the information Peter.

That's a shame it's not supported yet. I've voted for it in JIRA but for me by the time it is implemented we'll have already gone down a different, less user-friendly, web form route.

sekharbpm
Champ on-the-rise
Champ on-the-rise

Hi ScottF, 


I too wanted to implement the same, so is there any example?

Regards,

Sekhar