Radio button error while creating a component in XSL

Options

When using a radio button, if i select the second option or third option ..it is by-default giving me first option.  wat should be modified below?

 <Datum ID="D02" Type="RadioGroup" Name="Disease_type">
<Option Selected="false">
<Display>headache </Display>
<Value/>
</Option>
<Option>
<Display>cold </Display>
<Value/>
</Option>
<Option>
<Display>fever </Display>
<Value/>
</Option>
</Datum>

 Getting the result using this

Disease Type:

<xsl:value-of select="/Properties/Data/Datum[@ID = 'D02']/Option[@Selected='true']"/>

 

Comments

  • You have no values assigned to the various options.  So they are all set to the same thing.  try <Value>headache</Value>  etc

  • I tried that.. then both the things  like <value><display> vaules both r getting displayed side by side..

     

     

    for eg;

    <Display>Headache </Display>
    <Value>headache<Value/>

     

    then...it will display Headacheheadache.

    then how to display only one value.

  • <xsl:value-of select="/Properties/Data/Datum[@ID = 'D02']/Option[@Selected='true']"/>/Value
  • <xsl:value-of select="/Properties/Data/Datum[@ID = 'D02']/Option[@Selected='true']/Value"/>

    I hope I'm not nitpicking!

     

    regards,

    Praveen

TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs