• Help facet in Form Layout Row control

    By Michael K Stewart 9 years ago

    How is the Help facet in the Form Layout Row control used? My guess is that you can put something like a computed field in it, and see the value displayed as help somehow when you view the page in a browser. So far, I can't see that, either as static text or hover help. I'm doing:


    <xp:text escape="false" id="computedField5" xp:key="help">
        <xp:this.value><![CDATA[#{javascript:"Hey hey"}]]></xp:this.value>
    </xp:text>
    


    <xp:inputText id=“inputText1”…

    What's the right way to use this facet?

    • By Michael K Stewart 9 years ago

      Sorry, bad code snipping. Second try:

      <xe:formRow label="Since:" for="inputText1">
        <xp:this.facets>
          <xp:text escape="false" id="computedField5" xp:key="help">
              <xp:this.value><![CDATA[#{javascript:"Hey hey"}]]></xp:this.value>
          </xp:text>
        </xp:this.facets>
      <xp:inputText id="inputText1"
      
      • By Maire Kehoe 9 years ago

        It only uses the help facet when fieldHelp=“true” is set on the parent xe:formTable control.

        <xe:formTable id="formTable1"
            fieldHelp="true">
            <xe:formRow id="formRow1" label="First Name:">
                <xp:this.facets>
                    <xp:span xp:key="help">
                        <xp:image url="/.ibmxspres/.oneuiv302/oneuicompat/iconHelp16.png" alt="Help" id="helpImage1"></xp:image>
                        <xe:tooltip id="tooltip1" for="helpImage1" label="Enter your first name."></xe:tooltip>
                    </xp:span>
                </xp:this.facets>
                <xp:inputText id="inputText1">
                </xp:inputText>
            </xe:formRow>