Skip to main content

Regex Match to identify if a field is blank

Is it possible using regex match in conditional logic to identify if a field is blank? I have a radio question with 2 options and (my own) other. When other is selected a conditional text box appears. The submit button appears if either of the two first radio options is selected or the text box has content in it.

So I need to check the text box is not empty. There is no native condition for 'blank field'.

Green Tea

OK, so it seems REGEX matches is the way forward, this expression works for matching any entry with more than 3 letter characters: (?:[a-zA-Z][- ]?){3}

I could have used the native other and made the text box a required field. But I think it's neater with a custom other and custom submit. I'm going to try and use the form as an overlay survey question in Presto player.