Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

if statement from fmp5 not working in fmp7

Featured Replies

Could someone please take a look at this code and tell me what might be wrong.

I used the CDML converter to get this and the syntax looks just like the syntax that is in the Custom Web Publishing Guide but it will not work. If I replace the test with say 'one'='one' it works. Thanks in advance!

<h3><center><xsl:choose><xsl:when test="fmrs:field[@name = 'Status']/fmrs:data[1]='Expired'">

<center><font size="+1" color="#FF0000"><b>Registration

is closed for this

class.</b></font></center></xsl:when><xsl:otherwise>

<center><xsl:choose><xsl:when test="fmrs:field[@name = 'Status']/fmrs:data[1]='Full'">

<center><font size="+1" color="#FF0000"><b>Class is

Full</b></font>

<p><font size="+1" color="#FF0000"><b>Please

Contact Ann Palm at 446-1064 to get on a waiting

list.<br/>

Thanks!!</b></font></p></center></xsl:when><xsl:otherwise>

<center><a><xsl:attribute name="href"><xsl:call-template name="get-link-rec-id"><xsl:with-param name="rec-id" select="$default-record/@record-id"/><xsl:with-param name="stylesheet" select="'../class/registration.xsl'"/><xsl:with-param name="layout" select="'ClassID'"/></xsl:call-template></xsl:attribute>REGISTER

FOR THIS CLASS</a></center>

</xsl:otherwise></xsl:choose></center>

</xsl:otherwise></xsl:choose></center></h3>

</td>

<td width="4%">

</td>

</tr>

</table>

</center>

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.