Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / December 2004

Tip: Looking for answers? Try searching our database.

Hiding a blank textbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nolene - 03 Dec 2004 01:45 GMT
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.
Brian Teutsch [MSFT] - 03 Dec 2004 22:08 GMT
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

> Is there a way to hide a textbox if it is left blank, without having to
> place
[quoted text clipped - 18 lines]
>   City State ZIP
> If the Address 2 field isn't used, then that field is hidden.
Nolene - 06 Dec 2004 01:39 GMT
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

> How would a user ever discover the field if it's not there?
>
[quoted text clipped - 25 lines]
> >   City State ZIP
> > If the Address 2 field isn't used, then that field is hidden.
Brian Teutsch [MSFT] - 06 Dec 2004 18:45 GMT
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

> Exactly. I want it to show when the form is opened, but if the user
> doesn't
[quoted text clipped - 35 lines]
>> >   City State ZIP
>> > If the Address 2 field isn't used, then that field is hidden.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.