If the drop down box is being populated from a source (either main data
source or secondary data source), you can look up the value in the list of
values and return a message if the value cannot be found.
Since you've been posting the answers to all of your unanswered questions in
this newsgroup, I wrote a possible solution to this problem for you (I do not
do this often :) ). See
http://enterprise-solutions.swits.net/infopath2007/article.php?t=display-message
-box-when-item-does-not-exist-in-combo-box&c=infopath2007
While I wrote the solution for a combo box, it should also work for a
drop-down list box.
---
S.Y.M. Wong-A-Ton
> Hi Alex,
> Thanks so much for your reply.
[quoted text clipped - 6 lines]
> alerting the user that this value cannot be selected. Can this be
> done??
esebastian@esolutionsgroup.ca - 21 Feb 2007 18:59 GMT
I have tried to reply to this message a few times without the reply
going through on this end so if you see more than one reply -- so
sorry.
Thanks so much S.Y.M, the above worked famously!!! I do have a
question for you though. My form has a few comboboxes on it and the
combo boxes have many entries in them, up to 50-60 each... I am
wondering if we can put the Entries fields somewhere else, like in a
secondary data source, if we put them all in the main data source ,
the main data source is going to be HUGE... any wisdom to push my way
on this one???
Thanks,
Erin
S.Y.M. Wong-A-Ton - 22 Feb 2007 06:40 GMT
Absolutely! The solution would work equally well if you used secondary data
sources. The whole idea behind this solution is that there must be a list of
items somewhere that can be checked against. If the items are static, that
is, if you entered them manually into the drop-down, then there would be no
such list. So the items have to be stored either in the main data source or a
secondary data source, whichever suits you best.
---
S.Y.M. Wong-A-Ton
> I have tried to reply to this message a few times without the reply
> going through on this end so if you see more than one reply -- so
[quoted text clipped - 9 lines]
> Thanks,
> Erin
esebastian@esolutionsgroup.ca - 22 Feb 2007 14:16 GMT
It Works!!!
Thanks so much!
Erin
S.Y.M. Wong-A-Ton - 23 Feb 2007 13:10 GMT
Glad I could help. :)
---
S.Y.M. Wong-A-Ton
> It Works!!!
> Thanks so much!
> Erin