Populating a drop down box. - InfoPath Dev Sign in | Join | Help in Controls 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 » Controls » Populating a drop down box. Populating a drop down box. Last post 01-19-2010 02:09 PM by kerriejones. 10 replies. Page 1 of 1 (11 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 01-12-2010 02:22 PM kerriejones Joined on 01-03-2010 Posts 32 Populating a drop down box. Reply Contact Is it possible under certain conditions to alter the contents of a drop down control? I need to do the following: If the user is on view 1, I want the drop down to contain, “Oranges”, “Pears” and “Apples”. If however they are on view 2, I want the drop down to only contain, “Pears” and “Apples”. 01-12-2010 09:20 PM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact yes it is possible, just you will have to have the control on both the views and change the list box entries Qazi AnisTechnical ArchitectBitwise Inc 01-12-2010 09:28 PM In reply to kerriejones Joined on 01-03-2010 Posts 32 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact Qazi, I have the control on both views but do not know how to change the contents, depending on where I am. Can you supply more details if possible. Thanks 01-13-2010 05:14 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact go to the first view and in the properties of list box add up entries you want to appear for this view go to the second view and in the properties of list box add up entries you want to appear for this view Qazi AnisTechnical ArchitectBitwise Inc 01-13-2010 02:53 PM In reply to kerriejones Joined on 01-03-2010 Posts 32 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact Hi Qazi, I have just been informed that there is more criteria that determines what is in the drop down, This is an example: If Name = Fred, dropdown = Oranges, Lemons If Name = Mary, dropdown = Apples, Limes Is this possible, and if so how? 01-13-2010 10:45 PM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact conditional filling of drop down is possible only through code. Qazi AnisTechnical ArchitectBitwise Inc 01-14-2010 02:05 PM In reply to kerriejones Joined on 01-03-2010 Posts 32 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact Qazi, Can you tell me how, or point me in the right direction. Everyting I have seen uses xml files, which I do not beleive is appropriate here. 01-14-2010 09:26 PM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact Instead of going through all this, you can do one more thing create more than one dropdowns (with different items) and show/hide them depending on who is supposed to view what Qazi AnisTechnical ArchitectBitwise Inc 01-17-2010 02:32 PM In reply to kerriejones Joined on 01-03-2010 Posts 32 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact Unfortunately, I don’t think that is the best solution. It may be alright while I am the only one designing the forms. But if someone else comes along to work on the same form, they will have no idea what is going on. Plus, the field in question also get promoted to the workflow. Which would add even more confusion. 01-19-2010 01:10 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact have more than one drop down, and write a rule on all of them to update some other field say fieldx and promote fieldx. that would solve the problem and for the confusion part you can have a document it. Qazi AnisTechnical ArchitectBitwise Inc 01-19-2010 02:09 PM In reply to kerriejones Joined on 01-03-2010 Posts 32 Re: Populating a drop down box. Mark as Not AnswerMark as Answer... Reply Contact I have been able to achieve a solution via code thanks to the following articlehttp://www.bizsupportonline.net/browserforms/filter-cascade-drop-down-infopath-sharepoint-browser-form-owssvr-dll.htm Page 1 of 1 (11 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Is it possible under certain conditions to alter the contents of a drop down control? I need to do the following:
If the user is on view 1, I want the drop down to contain, “Oranges”, “Pears” and “Apples”.
If however they are on view 2, I want the drop down to only contain, “Pears” and “Apples”.
yes it is possible, just you will have to have the control on both the views and change the list box entries
Qazi,
I have the control on both views but do not know how to change the contents, depending on where I am. Can you supply more details if possible.
Thanks
go to the first view and in the properties of list box add up entries you want to appear for this view
go to the second view and in the properties of list box add up entries you want to appear for this view
Hi Qazi,
I have just been informed that there is more criteria that determines what is in the drop down, This is an example:
If Name = Fred, dropdown = Oranges, Lemons
If Name = Mary, dropdown = Apples, Limes
Is this possible, and if so how?
conditional filling of drop down is possible only through code.
Can you tell me how, or point me in the right direction. Everyting I have seen uses xml files, which I do not beleive is appropriate here.
Instead of going through all this, you can do one more thing create more than one dropdowns (with different items) and show/hide them depending on who is supposed to view what
Unfortunately, I don’t think that is the best solution. It may be alright while I am the only one designing the forms. But if someone else comes along to work on the same form, they will have no idea what is going on.
Plus, the field in question also get promoted to the workflow. Which would add even more confusion.
have more than one drop down, and write a rule on all of them to update some other field say fieldx and promote fieldx. that would solve the problem and for the confusion part you can have a document it.
I have been able to achieve a solution via code thanks to the following article