Jump to content

Simple Format Question


howudodat

Recommended Posts

I have a field $F{Telephone}  if the first char of the field is a '!' I want the field to be displayed with strikethrough font and trim the '!'  so:

111-222-3333 would print as is

!444-555-6666 would print as 444-555-6666 (underline = strikethrough)

Not sure how to set that up

Peter

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Perfect.  Here is the final code I used:

 

Peter

 

Code:
	<style name="strike">        <conditionalStyle>            <conditionExpression>                $F{telephone}.indexOf( "!" ) == 0 ? Boolean.TRUE : Boolean.FALSE            </conditionExpression>            <style isStrikeThrough="true" />        </conditionalStyle>    </style>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...