Jump to content
  • 0
Sign in to follow this  
Batchini

Extra spaces

Question

I have an issue in my current workflow. If the first field(Prefix such as Mr. Mrs. Ms) is blank, space appears before the first name when the formula is displayed.

Is there another formula that will eliminate the blank space if field 1 is blank? Here is the formula that I'm currently using: (SELECT [@field:Prefix] + ' ' + [@field:FirstName] + ' ' + [@field:LastName] 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @Batchini,

You may want to check this formula:

 

isnull([@field:Prefix],'') + (case when [@field:Prefix] = ' ' then '' else ' ' end)+ isnull( [@field:FirstName],'') + (case when [@field:FirstName] = ' ' then '' else ' ' end) +  isnull( [@field:LastName],'') + (case when [@field:LastName] = ' ' then '' else ' ' end))

I hope this works. 

Regards,
Barbie

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...