Hi Alex,
Thanks for replying and helping me. I will be more specific.
I have code this
Simple Price
<xforms:input ref="Common-price/Price/Value" xxforms:size="10">
<xforms:label style="display:none;">Simple Pricing->Price</xforms:label>
<xforms:alert>Use numbers and a decimal point, no letters or signs
</xforms:alert>
</xforms:input>
Description
<xforms:textarea ref="Common-price/Price/Description" xxforms:rows="3"
xxforms:cols="60">
<xforms:label /></xforms:textarea>/td>
Price High
<xforms:input ref="Common-price/Range-Price/Price-high/Value"
xxforms:size="10">
<xforms:label style="display:none;">Price Range->Price-high</xforms:label>
<xforms:alert>Use numbers and a decimal point, no letters or
signs</xforms:alert>
</xforms:input>
Description
<xforms:textarea ref="Common-price/Range-Price/Price-high/Description"
xxforms:rows="3" xxforms:cols="60"><xforms:label /></xforms:textarea>
Same for ref="Common-price/Range-Price/Price-low/Value" (low value and
description)
Now same details in other tr/td like Detailed price with ref like
ref="Specific-price/Price/Value", ref="Specific-price/Price/Description"
ref="Adult-price/Price/Value", ref="Adult-price/Price/Description"
This one file (pricedetails.xml)
<xforms:group model='Airport-model' ref="pricedetails'>
</xforms:group>
is included in other xml file (myfile.xml)
In myfile.xml we have complete form with HTML tr-td and various other fields
Name, Desc, email, etc.
<xforms:group>
<xi:include href="oxf:/apps/airport/Modules/PriceDetails.xml"
xxi:omit-xml-base="true" />
</xforms:group>
Same way in myfile.xml, one more file is included (other-details.xml)
<xforms:group>
<xi:include href="oxf:/apps/airport/Modules/other-details.xml"
xxi:omit-xml-base="true" />
</xforms:group>
In other-details.xml, again PriceDetails.xml is included
On click of '+', form in Otherdetails.xml (nodeset='otherdetails/service')
get displayed/repeated.
What I want is on the form,
if "Simple Price" is selected, tr for (Simple - price, desc) should get
displayed
If "Range" is selected, tr for Range and same for detailed one.
Here is the price template
<PriceDetails type="">
<Common-price>
<Price>
<Value /><Description />
</Price>
<Range-Price>
<Price-high><Value /><Description /></Price-high>
<Price-low><Value /><Description /></Price-low>
</Range-Price>
</Common-price>
<Specific-price>
<Price><Value /><Description /></Price>
<Price_special><Value /><Description /></Price_special>
</Specific-price>
</PriceDetails>
Used in two places
Details/information/pricedetails.......
Details/information/otherdetails/service/pricedetails....... (this nodeset
gets repeated on click of + icon)
How to achieve this?
if(price = 1) then
of simple price
if(price = 2) then
of range price
if(price = 3) then
of details price
And if above is achieved, then on submitting the data, will other nodes
(nodes of details and range if simple is selected) will get added in xml
file.
Please help me.
--
View this message in context:
http://discuss.orbeon.com/Conditional-display-of-xform-control-tp4662071p4662084.html