If email field is empty, calculation doesn't appear

Comments

4 comments

  • Rainer Grabowski

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

    0
    Comment actions Permalink
  • Podio Admin

    I get this error?

    0
    Comment actions Permalink
  • Rainer Grabowski

    In var email in the map() function you have to enter the same function as in var value 2. 

    0
    Comment actions Permalink
  • Podio Admin

    Amazing thank you Rainer that has worked. 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk