|
|
|
[
Permlink
| « Hide
]
Dick Anderson - 29/Oct/09 06:40 PM - edited
I think this can be done using a QuestionWithDetails with an "enableDetailsFor='Other'".
The following should do the job:
Define two attributes as follows: roofConstruction, and roofConstructionOther. <quotation xsi:type="java:com.ail.openquote.Quotation"> ... <asset id="asset" assetTypeId='Asset'> ... <attribute id="roofConstruction" value="?" format="choice,options=-1#?|1#Tile|2#Slate|3#Thatch|4#Other"/> <attribute id="roofConstructionOther" value="" format="string"/> ... </asset> ... </quotation> In the PageFlow you can then use a QuestionWithDetails to enable an "Other" text area: <pageFlow id="QuotationPageFlow" xsi:type="java:com.ail.openquote.ui.PageFlow"> ... <questionPage id="QuestionPage" title="About your home"> <questionSection title="Some questions to help us:"> ... <questionWithDetails title="What type of construction is used for the roof?" binding="/asset/attribute[id='roofConstruction']" detailsTitle="If 'Other' please give details:" detailsBinding="/asset/attribute[id='roofConstructionOther']" detailsEnabledFor="Other"/> ... </questionSection> </questionPage> ... </pageFlow> |
|||||||||||||||||||||||||||||||||||||||||