Hide Fields on Form Open, Show Field on Checkbox Value - InfoPath Dev Sign in | Join | Help in Browser Forms 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 » Browser Forms » Hide Fields on Form Open, Show Field on Checkbox Value Use our Google Custom Search for best site search results. Hide Fields on Form Open, Show Field on Checkbox Value Last post 04-04-2022 11:46 AM by JohnSM. 21 replies. Page 1 of 2 (22 items) 1 2 Next > Sort Posts: Oldest to newest Newest to oldest Previous Next 04-04-2022 07:46 AM JohnSM Joined on 06-19-2018 Denver, CO Posts 48 Hide Fields on Form Open, Show Field on Checkbox Value Reply Contact I need to hide a group of fields on form open and show the field based upon a checkbox value.I know how to create a formatting rule to hide the field based on a checkbox value, but how do you initially hide the field and then show it? Also, can you do this with a Section. I'd like to see if I can Hide/Show a section, cuz when I hide the field, the label still shows on the form. Thanks, John 04-04-2022 07:53 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,293 Re: Hide Fields on Form Open, Show Field on Checkbox Value Form1.xsn Mark as Not AnswerMark as Answer... Reply Contact Simple sample attached. Right click the linked file and save locally. Right click the saved file and choose Design to open in design mode - then you can preview. You'll see the formatting on the section hides it unless the checkbox field = true. You can change that rule to whatever the checked value will be. If you ever need to also hide a label, you can use the calculated value control for the label and then add conditional formatting on that, but, like you, I think a section is a better option. Hilary Stoupa 04-04-2022 08:04 AM In reply to JohnSM Joined on 06-19-2018 Denver, CO Posts 48 Re: Hide Fields on Form Open, Show Field on Checkbox Value Mark as Not AnswerMark as Answer... Reply Contact Apologies, I'm using IP2013 and SP 2013 on Premise. I got the field to hide on form open, but not the label, but I did get the section to hide based upon a value that does not equal one in the checkbox field.I created another rule that does the same thing, but does equal a value in the checkbox, but the section does not show. What can I do to show this section based on a checkbox value? Thanks 04-04-2022 08:13 AM In reply to JohnSM Joined on 06-19-2018 Denver, CO Posts 48 Re: Hide Fields on Form Open, Show Field on Checkbox Value Mark as Not AnswerMark as Answer... Reply Contact Thanks Hilary. I can hide the field with a not equals to value, but when it does equal the value, it still doesn't show. Do I need another rules to make it show? 04-04-2022 08:13 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,293 Re: Hide Fields on Form Open, Show Field on Checkbox Value Mark as Not AnswerMark as Answer... Reply Contact My guess is that there is a difference between your rule and the checkbox value. May I see a copy of your form? You can attach it under a reply on the Options tab. Hilary Stoupa 04-04-2022 08:27 AM In reply to JohnSM Joined on 06-19-2018 Denver, CO Posts 48 Re: Hide Fields on Form Open, Show Field on Checkbox Value Template.xsn Mark as Not AnswerMark as Answer... Reply Contact Thanks again. The Checkbox field has 7 values that correspond to 7 text fields. I need to hide those fields on form open and show if the checkbox is checked with that value. 04-04-2022 08:30 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,293 Re: Hide Fields on Form Open, Show Field on Checkbox Value Mark as Not AnswerMark as Answer... Reply Contact Oh! Do you mean the multiple select list in your form? Is that the "checkbox"? Hilary Stoupa 04-04-2022 08:38 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,293 Re: Hide Fields on Form Open, Show Field on Checkbox Value scrn.png Mark as Not AnswerMark as Answer... Reply Contact If so, try this on your condition - put the data source in advanced view and where you've selected the multi-select Value node, use the drop down to select "all instances", see if that helps.... Hilary Stoupa 04-04-2022 08:38 AM In reply to JohnSM Joined on 06-19-2018 Denver, CO Posts 48 Re: Hide Fields on Form Open, Show Field on Checkbox Value Mark as Not AnswerMark as Answer... Reply Contact Yes, it's a SP Choice field to allow multiple selections. 04-04-2022 08:51 AM In reply to JohnSM Joined on 06-19-2018 Denver, CO Posts 48 Re: Hide Fields on Form Open, Show Field on Checkbox Value Mark as Not AnswerMark as Answer... Reply Contact Still not working. I can hide the sections, they're just not showing when the checkbox is checked. What does changing the Sections to 'Optional' do? 04-04-2022 08:57 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,293 Re: Hide Fields on Form Open, Show Field on Checkbox Value scrn2.png Mark as Not AnswerMark as Answer... Reply Contact Weird, it works for me. Attaching screenshots and will post again with sample form. Hilary Stoupa 04-04-2022 08:58 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,293 Re: Hide Fields on Form Open, Show Field on Checkbox Value Template.xsn Mark as Not AnswerMark as Answer... Reply Contact Template Hilary Stoupa 04-04-2022 09:15 AM In reply to JohnSM Joined on 06-19-2018 Denver, CO Posts 48 Re: Hide Fields on Form Open, Show Field on Checkbox Value screenshot.png Mark as Not AnswerMark as Answer... Reply Contact Where do you get 'All Occurrences of Value'? I don't see that in my form. 04-04-2022 09:20 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,293 Re: Hide Fields on Form Open, Show Field on Checkbox Value Mark as Not AnswerMark as Answer... Reply Contact Up further in this thread, I attached a screenshot. When you create the condition, on the first dropdown, click on select a field or group. When the field picker opens, click the link under the data source to show in advanced mode. Then, the Value field should have a dropdown at the bottom of the dialog, as per my earlier screenshot? You could also change my sample condition so that the first dropdown is "the expression" and InfoPath will show you the XPath expression for the condition. Then you can just change it for the other options.... :) Hilary Stoupa 04-04-2022 09:36 AM In reply to JohnSM Joined on 06-19-2018 Denver, CO Posts 48 Re: Hide Fields on Form Open, Show Field on Checkbox Value HideShowForm.xsn Mark as Not AnswerMark as Answer... Reply Contact OK, I found that, but now when I check the box, only the label appears, nit the text field. I know it's something simple I'm missing. Page 1 of 2 (22 items) 1 2 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Use our Google Custom Search for best site search results.
I need to hide a group of fields on form open and show the field based upon a checkbox value.
I know how to create a formatting rule to hide the field based on a checkbox value, but how do you initially hide the field and then show it?
Also, can you do this with a Section. I'd like to see if I can Hide/Show a section, cuz when I hide the field, the label still shows on the form.
Thanks, John
Apologies, I'm using IP2013 and SP 2013 on Premise.
I got the field to hide on form open, but not the label, but I did get the section to hide based upon a value that does not equal one in the checkbox field.
I created another rule that does the same thing, but does equal a value in the checkbox, but the section does not show.
What can I do to show this section based on a checkbox value?
Thanks
Thanks Hilary. I can hide the field with a not equals to value, but when it does equal the value, it still doesn't show. Do I need another rules to make it show?