If email field is empty, calculation doesn't appear
Hello, I have created a podio calculation to create a table overview of client details.
If the email address field isn't empty, the table works fine.
If the email address field IS empty, the calculation doesn't appear. Any ideas? I have exhausted every online search!
email address field IS empty:
email address field ISN'T empty:
-
emptyphonefield.map().join() causes an error because you can't map an empty object.
And an error somewhere in the calc code returns "" (empty) for the field.
So you should do a field check first (if not empty map else empty):
email = @Client Email Address != null ? @Client Email Address.map().join() : "";
Same for the phone field and also for the birthday field if it can happen that that date field is empty).
Please sign in to leave a comment.
Comments
4 comments