cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SeanTambling
Level: Powered On

how to remove empty lines in a datacardvalue

I have the code listed below as the TEXT of a datacardvalue. It works great. I was wondering if there is a way to NOT show the red 

middle section if it is empty and let the city,state,zip move up a line? Its not that big of a deal. I just think it could look nicer if when address2 is blank that the datacard box is more condensed.

ThisItem.Address1 & "

" & ThisItem.Address2 & "

" & City & " " & State & " " & Zip

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: how to remove empty lines in a datacardvalue

Hi @SeanTambling ,

 

Use below formula instead to achieve this:

 

If(!IsBlank(ThisItem.Address2),ThisItem.Address1 & "

" & ThisItem.Address2 & "

" & City & " " & State & " " & Zip,
ThisItem.Address1 & "

" & City & " " & State & " " & Zip)

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: how to remove empty lines in a datacardvalue

Hi @SeanTambling ,

 

Use below formula instead to achieve this:

 

If(!IsBlank(ThisItem.Address2),ThisItem.Address1 & "

" & ThisItem.Address2 & "

" & City & " " & State & " " & Zip,
ThisItem.Address1 & "

" & City & " " & State & " " & Zip)

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

SeanTambling
Level: Powered On

Re: how to remove empty lines in a datacardvalue

@v-monli-msft 

Thank you so much Mona! That worked Perfectly!!!

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,764)