Hiding a blank textbox

N

Nolene

Is there a way to hide a textbox if it is left blank, without having to place
it in it's own section (which creates spacing hassles)?

And is there a way to hide the placeholder in an unused field when emailing
the form?

If I just set the Conditional formatiing to hide the field if it's blank,
then it never shows up at all. I have solved it by setting the conditional
formatiing to hide the box if it has a single space in it and then putting a
note via the placeholder to say "If this field is unused, hit spacebar once."
This works, but I was wondering if there was a better way to do this.

I am using it in an address block.
Company
Address 1
Address 2
City State ZIP
If the Address 2 field isn't used, then that field is hidden.
 
B

Brian Teutsch [MSFT]

How would a user ever discover the field if it's not there?

You can probably fix the spacing by setting the optional section to have a
height of "auto".

Brian
 
N

Nolene

Exactly. I want it to show when the form is opened, but if the user doesn't
type anything into it, have it "disappear" once it's printed or emailed.

Nolene
 
B

Brian Teutsch [MSFT]

Then using an option section should do what you wanted. They aren't printed,
and allow the form user to insert just the fields they need.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top