Hiding columns - InfoPath Dev Sign in | Join | Help in Newbie Questions InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Newbie Questions » Hiding columns Hiding columns Last post 02-23-2009 02:28 PM by shorty. 5 replies. Page 1 of 1 (6 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 04-04-2006 06:24 AM dlgross Joined on 03-23-2006 USA Posts 271 Hiding columns Reply Contact What is the best way to conditionally hide columns in a table? DeanCharlotte, NC 04-04-2006 11:01 AM In reply to Greg Collins Joined on 08-07-2006 Posts 2,126 Re: Hiding columns Mark as Not AnswerMark as Answer... Reply Contact Hiding columns is not supported in the designer. You will need to manually modify the view XSL and hand-code some conditions to make this work. Please Visit:BraintroveGreg's Paintings 04-04-2006 05:18 PM In reply to Shiraz Cupala Joined on 08-08-2006 Seattle, WA Posts 443 Re: Hiding columns Mark as Not AnswerMark as Answer... Reply Contact InfoPath 2007 also enables laying out sections side by side. This would theoretically allow you to create a structure that looks like table columns only using sections that are placed next to each other. Then you can show/hide the sections as usual. This was not possible in InfoPath 2003 because sections were a block element and had to be on separate lines. Shiraz Cupala / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge 03-26-2007 09:58 PM In reply to soshan Joined on 03-24-2007 India Posts 5 Re: Hiding columns Mark as Not AnswerMark as Answer... Reply Contact I'm having the same problem Greg. Can you provide in a sample of the view XSL that you mentioned to show/hide columns please. 03-26-2007 10:34 PM In reply to soshan Joined on 03-24-2007 India Posts 5 Re: Hiding columns Mark as Not AnswerMark as Answer... Reply Contact Also, I cannot place sections horizontally, in a side-by-side formation, as this form needs to be browser compatible. 02-23-2009 02:28 PM In reply to shorty Joined on 02-23-2009 Posts 1 Re: Hiding columns Mark as Not AnswerMark as Answer... Reply Contact Hello, I was having the same issue (how do you completely hide a column?). Here is the solution I worked out editing the xsl view. It basically sets the column width to 0 when a checkbox is unchecked. Hope this helps.<colgroup> <xsl:choose><xsl:when test="my:CheckBox_EnteredRGU = "no""><col style="WIDTH: 0px"></col></xsl:when> <xsl:when test="my:CheckBox_EnteredRGU = "yes""><col style="WIDTH: 68px"></col></xsl:when></xsl:choose> </colgroup> Page 1 of 1 (6 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hello, I was having the same issue (how do you completely hide a column?). Here is the solution I worked out editing the xsl view. It basically sets the column width to 0 when a checkbox is unchecked. Hope this helps.
<