How to make a control required (i.e. cannot be blank) using code - 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 » How to make a control required (i.e. cannot be blank) using code How to make a control required (i.e. cannot be blank) using code Last post 03-29-2010 10:37 PM by Qazi Anis. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 03-29-2010 09:53 AM putnamsam Joined on 03-24-2009 Posts 14 How to make a control required (i.e. cannot be blank) using code Reply Contact I am trying to make a set of controls requied based on a users input. They select an option and depending on their selection a set of controls is now required. 03-29-2010 10:02 AM In reply to Hoveyg Joined on 03-19-2010 Posts 11 Re: How to make a control required (i.e. cannot be blank) using code Mark as Not AnswerMark as Answer... Reply Contact You might be able to use "Data Validation" on the controls to make it mandatory... (Wouldn't need code this way) 03-29-2010 10:37 PM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: How to make a control required (i.e. cannot be blank) using code Mark as Not AnswerMark as Answer... Reply Contact validating a control using code: right click your control -> programming -> validating event and write your validation code there Qazi AnisTechnical ArchitectBitwise Inc Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I am trying to make a set of controls requied based on a users input. They select an option and depending on their selection a set of controls is now required.
You might be able to use "Data Validation" on the controls to make it mandatory... (Wouldn't need code this way)
validating a control using code:
right click your control -> programming -> validating event
and write your validation code there