Hi Guys, I'm new to InfoPath and I have a couple questions. The first one is about how to hide a section until a query has been made. I also want to make it so that the repeating section adds only one new record, and cannot be accidentally deleted by the user once they've created it.
Basically I've got an access database on a network drive of employee info in one table, and another table with fields for responses to a questionnaire ready to be input. I created an infopath form, following a tutorial from Microsoft, which allows the user to query their data by typing in their name and hitting a query button, and then their info appears in a repeating section below, with a sub-repeating section for all of their survey responses. So far, it works well and the user can successfully add responses which will be added to the response table and the employee primary key field is also added to identify who input the response based on their lookup.
The problem is that they can see all the questions in the section below the lookup before they lookup their name, and if someone were to answer the questions and hit submit without looking up their name, then they get an error, and would have to start all over. I would like to somehow hide the repeating section with the responses until they query their name and their info pops up.
Also, when they click outside of a text box in the repeating section, it selects the entire selection and they could accidentally hit delete and lose all of their answers.
Finally, I would like to hide the "add new section" link once their survey pops up. Basically I want to restrict the number of records they can add to 1.
Any help is greatly appreciated.
Thanks,
Max