Mandatory Based on "Field" selection - InfoPath Dev Sign in | Join | Help in Code 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 » Code » Mandatory Based on "Field" selection Mandatory Based on "Field" selection Last post 03-17-2016 11:57 AM by Hilary Stoupa. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 03-17-2016 11:14 AM ORISManager Joined on 03-17-2016 Posts 2 Mandatory Based on "Field" selection Reply Contact I have 2 fields 1. Admission Type2. Room NumberIf Admission Type "Inpatient" is chosen, I would like to make "Room Number" a mandatory field.Does anyone know if this is possible and how to do it if so?Thanks in advance. 03-17-2016 11:42 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Mandatory Based on "Field" selection Mark as Not AnswerMark as Answer... Reply Contact Add a validation rule - if Admission Type = "Inpatient" and Room Number is blank, display an error to the user. Hilary Stoupa 03-17-2016 11:54 AM In reply to ORISManager Joined on 03-17-2016 Posts 2 Re: Mandatory Based on "Field" selection Mark as Not AnswerMark as Answer... Reply Contact Hilary, Thanks for the reply. I am new to InfoPath and am not sure how to add the error. 03-17-2016 11:57 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Mandatory Based on "Field" selection Mark as Not AnswerMark as Answer... Reply Contact This Office Online post explains how to add a validation rule. Perhaps give this a try? https://support.office.com/en-us/article/Add-rules-for-validation-fa530b5c-419f-4c03-a85f-d7f96cb9de95 Hilary Stoupa Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I have 2 fields
1. Admission Type
2. Room Number
If Admission Type "Inpatient" is chosen, I would like to make "Room Number" a mandatory field.
Does anyone know if this is possible and how to do it if so?
Thanks in advance.
Hilary,
Thanks for the reply. I am new to InfoPath and am not sure how to add the error.