IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#58111 - 07/23/21 12:34 PM Conditional Address display
Msalinas Offline
OL Newbie

Registered: 07/23/21
Posts: 1
Hello,

I am new using PlanetPress. I am trying to display the Country other than 'US'.

My Code is:
=Trim(Field('city',1)) + ', '+ Trim(Field('state',1)) + ' ' + Field('zip',1) + ' ' + if(Field('OOC',1)='US','',Field('OOC',1))

The result I am getting is:
San Benito, TX 78526-7137 F

It looks like it is showing at the end the result of the condition (F) instead of '' or the the field value (OOC)

What am I doing wrong?... I

Top
#58112 - 07/23/21 12:48 PM Re: Conditional Address display [Re: Msalinas]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
Your code seems legit. Must be something peculiar to your setup.
To help you properly we would need to see the form and reproduce the issue. I suggest you open a technical support ticket through our website.
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top