conditionally hiding text

Avatar

Avatar

ckasprzak

Avatar

ckasprzak

ckasprzak

16-09-2009

I am creating a form where in each section i would like to have "additional notes". however, if there are no additional notes, i would like it to be hidden, so the person reading/filling it out is not confused or believes the document is not completed. i know how to hide and show certain things but that is not necessarily what i want. it needs to be based on what the user wants when filling it out.

i was thinking if maybe i set it up so there was a check box next to it and if checked, the user can input the additional notes. if unchecked it will be hidden from the document when printed.

i was hoping someone would be able to help. thanks so much!

View Entire Topic

Avatar

Avatar

xrum

Avatar

xrum

xrum

16-09-2009

if (checkbox.rawValue == 0)

{

     yourText.presence="visible"

}

else

{

     yourText.presence="hidden" (or "invisible")

}