Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3395 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Ive have the following script to create an address block from the individual fields in a record. Sometimes there is not data in the 'line_address_2' and this script will produce a blank line.

Can someone advise me on what to add so as the 'line_address_2' field is checked for data and if blank then don't create a blank line, whereas if it contains data the data will be added.

 

Thanking you in anticipation.

title & " " & firstname & " " & surname & ¶ & houseno_name & " " & line_address_1 & ¶ & line_address_2 & ¶ & town & ¶ & county  & " " & postcode

Posted (edited)

title & " " & firstname & " " & surname & ¶ & houseno_name & " " & line_address_1 & ¶ & if (not isEmpty(line_address_2); line_address2 & ¶; "") & town & ¶ & county  & " " & postcode

Edited by doughemi
Posted

List ( 

title & " " & firstname & " " & surname;

houseno_name & " " & line_address_1;

line_address_2;

town;

county  & " " & postcode

)

 

 

Posted

Thanks guys, very helpful, Ill try these suggestions over the weekend

This topic is 3395 days old. Please don't post here. Open a new topic instead.

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...

Important Information

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