Server Action Condition for _POST value being null/empty

Hi have a server action with a condition, and I am trying to set a condition that if the form field value is not empty then carry out a step. But I can’t get it to work.

use .trim().length() – trim to avoid white space

{{$_POST.shr_media_email_address.trim().length() == 0}}

thanks @scalaris, so in my case I would put !=0

Yes, as your logic demands.

1 Like