Display text if entered, NA if not

Hi all,

I am trying to design a "summary results" component to a survey that lists the earlier responses to some key questions in a note variable. For text variables, I can easily enough just reference the variable, but is there a way to display "NA" if nothing was typed into the text variable?

Thanks,
Seth

Hi Seth,

You would need some sort of interim calculation where you put

coalesce(${var}, "NA")

And then reference the calculation instead.

Alternatively you could make "NA" a default value on the text variable
itself, although that comes with it's own baggage (like having to delete
the NA before entering a new value).

Jason

ยทยทยท On Wednesday, November 16, 2016 at 9:53:53 AM UTC-5, sethzi...@gmail.com wrote: > > Hi all, > > I am trying to design a "summary results" component to a survey that lists > the earlier responses to some key questions in a note variable. For text > variables, I can easily enough just reference the variable, but is there a > way to display "NA" if nothing was typed into the text variable? > > Thanks, > Seth