SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set a conditional formatting on a drop down list whose data source is a SharePoint List. The Info Path form is opened in a browser.

The conditional formatting goes something like this

Field Name does not contain Value[Name = "PreferredName"]

The Vale[Name = "PreferredName"] comes from GetUserProfileByName where the parameter (accountname) is left blank so I get the current user.

With the condition, I am trying to say if Field Name does not contain the current user's name then disable this control, but it is not working?

Is it possible to use "does not contain" with a drop down list? Will it check all the values in a drop down list against Value[Name = "PreferredName"]?

share|improve this question

closed as off topic by Alex Angas Jun 2 '11 at 5:39

Questions on SharePoint Stack Exchange are expected to relate to SharePoint within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

could you show your code example? – Nick Hadlee Aug 15 '10 at 19:27
There is no code involved just setting properties. I took some snapshots of the settings Drop down properties Conditional formatting: – i.jk Aug 15 '10 at 20:08

Browse other questions tagged or ask your own question.